[Freeswitch-users] sip trunk caller extension is not displayed, only main number

Paul Muaddib paul.muaddib83 at gmail.com
Fri Jan 18 10:16:04 UTC 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190118/89992092/attachment.html>


More information about the FreeSWITCH-users mailing list