[Freeswitch-users] Inbound ANI

Michael Lutz mytemike72 at gmail.com
Tue Jan 31 01:33:30 MSK 2012


Hi John,

It looks like it's passing calling_name and not calling_number. From
the logs it shows your provider is sending the "000000000" as the
calling name. Show channels will also just show you calling_name and
not calling_number. If you require the actual number, you should get
the right channel variable "calling_number".

Regards,
Michael Lutz

2012/1/30 Michael Jerris <mike at jerris.com>:
> what does the invite packet look like, there are a few different settings
> for caller id in sip that tell it to look in various places.
>
> http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#CallerID_Related_options
>
> Mike
>
> On Jan 29, 2012, at 1:43 PM, John Macleod wrote:
>
> I have a toll-free number coming into FreeSwitch via SIP.
>
> In the log, I see the ANI of the caller (I have sanitised this to protect
> the innocent):
>
> 2012-01-29 10:23:04.968117 [INFO] mod_dialplan_xml.c:481 Processing unknown
> <0000000000>->18001231234 in context public
> 2012-01-29 10:23:04.968117 [INFO] switch_core_session.c:1332
> sofia/external/614xxxxxxx at x.x.x.x setting session heartbeat to 60 second(s).
> 2012-01-29 10:23:05.008105 [INFO] switch_core_session.c:2135 Sending early
> media
> 2012-01-29 10:23:05.008105 [NOTICE] mod_sofia.c:2576 Pre-Answer
> sofia/external/614xxxxxxx at x.x.x.x!
> 2012-01-29 10:23:07.328098 [NOTICE] mod_dptools.c:1135 Channel
> [sofia/external/614xxxxxxx at x.x.x.x] has been answered
> 2012-01-29 10:23:12.108110 [NOTICE] mod_dptools.c:1121 Hangup
> sofia/external/614xxxxxxx at x.x.x.x [CS_RESET] [NORMAL_CLEARING]
> 2012-01-29 10:23:12.108110 [NOTICE] switch_core_session.c:1398 Session 7
> (sofia/external/614xxxxxxx at x.x.x.x) Ended
> 2012-01-29 10:23:12.108110 [NOTICE] switch_core_session.c:1400 Close Channel
> sofia/external/614xxxxxxx at x.x.x.x [CS_DESTROY]
>
> This is just a Plivo app that plays a greeting and disconnects.
>
> However, in the CDRs, I do not get the ANI, I get 0000000000 and the DNIS, I
> would like the ANI and DNIS.
>
> "unknown","0000000000","18001231234","public","2012-01-29
> 10:23:04","2012-01-29 10:23:07","2012-01-29
> 10:23:12","8","5","NORMAL_CLEARING","49209654-4aa6-11e1-ac59-9949a61da724","","","PCMU","PCMU"
>
> Is there a parameter I am missing to pass this variable from sofia?
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list