[Freeswitch-users] Inbound ANI

John Macleod jcdmacleod at me.com
Sun Jan 29 21:43:42 MSK 2012


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?

Thanks,

John



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