[asterisk-dev] [Code Review] Patch to detect/parse ANI-II / ANI2 / OLI from SIP INVITE messages

Rob Gagnon reviewboard at asterisk.org
Thu May 24 14:39:29 CDT 2012

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers and Rob Gagnon.


Add ANI2 / OLI parsing for SIP.  The patch checks the "From" header during the handle_request_invite() function for the presence of "isup-oli", "ss7-oli", or "oli" tags.  If present, the up-to-2-digits following the equal sign in the tag are set on the channel's caller structure in the "ani2" int element.

This allows SIP functions that reference ANI2 to work properly for SIP.  Specifically tested was the messaging that occurs when AGI transmits its data to an AGI script.

This addresses bug 19912.


  /trunk/channels/chan_sip.c 367655 

Diff: https://reviewboard.asterisk.org/r/1947/diff


Call processing via AGI call in dial plan which logs all AGI incoming values was executed from cell phone, land line, and payphone.  During the payphone call, the value of "agi_callingani2" was properly transmitted as "7" while the others were "0"



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120524/feecc450/attachment.htm>

More information about the asterisk-dev mailing list