Too cryptic ;-), I’ve checked things are spelt the same and can’t see anything wrong from what I been to to do ?. The trunk details are as I posted before and extensions_custom.conf :-
[custom-get-did-from-sip]
exten => s,1,Noop(Fixing DID using information from SIP TO header)
exten => s,n,Set(pseudodid=${SIP_HEADER(To)})
exten => s,n,Set(pseudodid=${CUT(pseudodid,@,1)})
exten => s,n,Set(pseudodid=${CUT(pseudodid,:,2)})
exten => s,n,Goto(from-trunk,${pseudodid},1)
[from-trunk-sip-LLBT]
exten => _.,1,set(CALLERID(number)=${REPLACE(CALLERID(number), ,)})
exten => _.,n,set(CALLERID(number)=${REPLACE(CALLERID(number),-,)})
exten => _.,n,noop(CALLERID is now ${CALLERID(all)})
exten => _.,n,Goto(from-trunk,${EXTEN},1)
I don’t know what else to say, check your work AGAIN, issue a dialplan reload after each change, make sure the last reference to your desired context in the extensions* heirarchy is what you want, iterate the above steps until it works and I can assure you that it does work if you do it correctly.
Hi Skyking, Thank you for replying. I have spent several hours trying to get this working
‘dialplan show from-trunk-sip-LLBT-custom’ came back with :-
There is no existence of ‘from-trunk-sip-LLBT-custom’ context
Command ‘dialplan show from-trunk-sip-LLBT-custom’ failed.
and context :-
context=from-trunk-sip-LLBT
This is in PEER Details and USER Details is blank
To summarize, what I have done is to copy Dicko’s code to /etc/asterisk/extensions_custom.conf and have the trunk context as above, I don’t know what else I should be doing??
The ‘from-trunk-sip-LLBT-custom’ custom bit maybe coming from extension_conf ?
Excerpt of :-
;-------------------------------------------------------------------------------
; from-pstn:
;
; Entry context for calls from the outside world to hit FreePBX
[from-pstn]
include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
include => ext-did
include => ext-did-post-custom
include => from-did-direct
include => ext-did-catchall ; THIS MUST COME AFTER ext-did
;-------------------------------------------------------------------------------
I’m not sure… I don’t know if it really has anything to do with this issue, but one thing I have discovered is in Trunk PEER Details I don’t need to add ‘username=LLBT’, it still works without it ?. This is the level I’ve got to now, changing things, partly to see what happens. The ‘Trunk Name’ is the username ID in the Linksys 3102 and PEER Details ‘secret’ is the password, Some of this I obviously knew, but I thought the 3102 username ID came from the ‘username=’ parameter of the PEER Details?
Didn’t think it did, just an interesting observation. Do you know how to fix this by the way ? - or are you just waiting for me to find out myself ?
I’m almost at the stage of ditching the whole thing over this ‘simple’ issue . I know it’s not a FreePBX/Asterisk problem and the problem stems from my telephone line provider !
I’ve done exactly what I’ve be told, add the code to extensions_custom.conf and context=from-trunk-sip-LLBT in PEER Details, I’ve checked spelling etc what else ?..
The method has been posted along with all the diagnostic tools to check.
Write a conyext, send the inbound call to that, reload the dialplan and check with “dialplan show (context)” that what you want is there. Check with the CLI that the call is processed as you want. That is all, many including myself use this methodology all the time.
Seems simple enough, more or less what I’ve been doing (forgot to reload (amprotal a r) couple of times though)) . Daft question, how do I know when ‘logger show channels’ is showing the ‘correct’ information ? What I may do is a fresh install and try that, right pain that’ll be reconfiguring !!
It’s not 100% solved, as it appears to now bypasses the Asterisk Phone book and Superfecta’s ‘Send to email’ for ‘modified’ CID’s, - oh well can’t win them all !