then ran the command “dialplan reload” from the CLI and dialed a DID attached to the PBX from my cellphone but the callerID name that displayed on my SIP device is still “My Name”.
I’m using hosted FreePBX 13.0.182 with Asterisk 11.22.0. Within FreePBX I’ve setup an inbound route with the destination of Extension 100 for one of the DIDs and extension 100 is connected to a SIP phone.
This is my first post in these forums and I’ve heard good things from my hosted provider, Cyberlynk. Thanks in advance for any help you’re able to give, I greatly appreciate it.
create the inbound route on the GUI, then change the context for the inbound calls to your custom context, and then foward the call back to the FreePBX default inbound context
For example
assuming the DID is 123456
edit /etc/asterisk/extensions_custom.conf
[mycustom-context]
exten =>_123456,1,Nop( let’s change the caller id name )
same=>n,Set(CALLERID(name)=${mynewname})
same=>n,Goto(from-trunk,${EXTEN},1)
I followed your steps with a little modification but did not find success.
First, in the GUI’s PEER Details section of the SIP trunk I changed the line context=from-trunk to context=mycustom-context and applied the config.
Then I edited /etc/asterisk/extension_custom.conf and added the following lines:
[mycustom-context]
exten =>_12267225113,1,Nop( let's change the caller id name )
same=>n,Set(CALLERID(name)="Newname")
same=>n,Goto(from-trunk,${EXTEN},1)
include => from-trunk
Saved it, and within SSH ran the command amportal reload.
However, when I call 2267225113 from my cell phone, the SIP phone (attached to extension 100) rings but the caller ID name that shows up is still “My Name”.
If you or anyone reading this has any suggestions I’d be so grateful!
When I removed the include => from-trunk line and call I hear a female voice saying “the number you have dialed is not in service, please check the number and try your call again” and the asterisk -rvv command yields this output:
== Using SIP RTP CoS mark 5 [2016-10-22 19:32:58] NOTICE[1496][C-00000070]: chan_sip.c:25859 handle_request_invite: Call from 'vinnoINn' (I.P.ADD.RESS:5060) to extension '+12267225113' rejected because extension not found in context 'mycustom-context'.
== Using SIP RTP CoS mark 5 [2016-10-22 19:32:59] NOTICE[1496][C-00000071]: chan_sip.c:25859 handle_request_invite: Call from 'vinnoINn' (I.P.ADD.RESS:5060) to extension '+12267225113' rejected because extension not found in context 'mycustom-context'.
when I leave the include => from-trunk line in & call the DID, the extension rings and I get this output:
== Using SIP RTP CoS mark 5
== Using SIP RTP CoS mark 5
== Spawn extension (from-internal, 1008, 1) exited non-zero on 'SIP/1008-0000008b'
== Spawn extension (macro-dial-one, s, 48) exited non-zero on 'SIP/vinnoINn-0000008a' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on 'SIP/vinnoINn-0000008a' in macro 'exten-vm'
== Spawn extension (ext-local, 1008, 2) exited non-zero on 'SIP/vinnoINn-0000008a'
== Spawn extension (macro-hangupcall, s, 5) exited non-zero on 'SIP/vinnoINn-0000008a' in macro 'hangupcall'
== Spawn extension (ext-local, h, 1) exited non-zero on 'SIP/vinnoINn-0000008a'
== Spawn extension (from-sip-external, s, 11) exited non-zero on 'SIP/PB.X.I.P-00000089'
== Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/PB.X.I.P-00000089'
however the caller ID remains unchanged even AFTER I tried the Set CallerID Module by adding a rule with…
Description: CIDchangefilter
CallerID Name: JoeBlow
CallerID Number: ${CALLERID(num)}
Destination: Extension 1008
I should note that I changed the inbound route for that DID to extension 1008.
ambiorixg12 I REALLY appreciate your help my friend!! This is completely puzzling but I’m grateful for the help and optimistic the solution is near.
Set CallerID module should work but you need to point the inbound DID to the Set CallerID you created before, any way if you want to test the first method do the following remove the include => from-trunk and replace _1226722511 by +12267225113 and reload asterisk
should be like this
[mycustom-context]
exten =>+12267225113,1,Nop( let’s change the caller id name )
same=>n,Set(CALLERID(name)=“Newname”)
same=>n,Goto(from-trunk,${EXTEN},1)
and you need to make an inbound route using +12267225113 and pointing to the desired extension
just add the DIDs to the same custom context , also you must create the inbound routes on the GUI for each DIDs
I’m glad you managed to solve your issue, following my advises and remember future FreePBX’s questions must be addressed on the FreePBX’s forum http://community.freepbx.org/