sip trunk caller extension is not displayed, only main number
Hi, I have a SIP Trunk account. From some companys that call me, which also have a SIP Trunk account, I can only see the main number in the phone display but not the extension. The correct number with the right extension is only inside the sip_P-Asserted-Identity variable and not the caller_id_number. So I thought I could assign the sip_P-Asserted-Identity to effective_caller_id_number and all is fine but that is not working. conf/dialplan/public/voip_inbound.xml <extension name="telekom-voip-inbound-extension"> <condition field="${sip_h_P-Called-Party-ID}" expression="(XXXXXXX(\d{2}))"> <action application="set" data="domain_name=$${domain}"/> <action application="set" data="effective_caller_id_number=${sip_P-Asserted-Identity}"/> <action application="set" data="effective_caller_id_name=${sip_P-Asserted-Identity}"/> <action application="transfer" data="$2 XML default"/> </condition> </extension> What am I doing wrong? Best regards
I am not sure. Did you try "export" instead of "set"? Am 18.01.2019 um 11:16 schrieb Paul Muaddib:
Hi,
I have a SIP Trunk account. From some companys that call me, which also have a SIP Trunk account, I can only see the main number in the phone display but not the extension. The correct number with the right extension is only inside the sip_P-Asserted-Identity variable and not the caller_id_number.
So I thought I could assign the sip_P-Asserted-Identity to effective_caller_id_number and all is fine but that is not working.
conf/dialplan/public/voip_inbound.xml
<extension name="telekom-voip-inbound-extension"> <condition field="${sip_h_P-Called-Party-ID}" expression="(XXXXXXX(\d{2}))"> <action application="set" data="domain_name=$${domain}"/> <action application="set" data="effective_caller_id_number=${sip_P-Asserted-Identity}"/> <action application="set" data="effective_caller_id_name=${sip_P-Asserted-Identity}"/> <action application="transfer" data="$2 XML default"/> </condition> </extension>
What am I doing wrong?
Best regards
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
Try <param name="extension" value="auto_to_user"/> in the gateway configuration. Von: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> Im Auftrag von Thorsten Göllner Gesendet: Montag, 21. Januar 2019 10:59 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>; Paul Muaddib <paul.muaddib83@gmail.com> Betreff: Re: [Freeswitch-users] sip trunk caller extension is not displayed, only main number I am not sure. Did you try "export" instead of "set"? Am 18.01.2019 um 11:16 schrieb Paul Muaddib: Hi, I have a SIP Trunk account. From some companys that call me, which also have a SIP Trunk account, I can only see the main number in the phone display but not the extension. The correct number with the right extension is only inside the sip_P-Asserted-Identity variable and not the caller_id_number. So I thought I could assign the sip_P-Asserted-Identity to effective_caller_id_number and all is fine but that is not working. conf/dialplan/public/voip_inbound.xml <extension name="telekom-voip-inbound-extension"> <condition field="${sip_h_P-Called-Party-ID}" expression="(XXXXXXX(\d{2}))"> <action application="set" data="domain_name=$${domain}"/> <action application="set" data="effective_caller_id_number=${sip_P-Asserted-Identity}"/> <action application="set" data="effective_caller_id_name=${sip_P-Asserted-Identity}"/> <action application="transfer" data="$2 XML default"/> </condition> </extension> What am I doing wrong? Best regards _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (3)
-
ITutu - Mailings
-
Paul Muaddib
-
Thorsten Göllner