Good day to all. Here is what I am trying to do and I am hoping someone can set me in the right direction. I am using Opensips 1.11.2
I have an inbound SIP call. This call is actually a forward. When I dial the number 8585554444 it is forwarded to 8585554444. Dialed number: 8585554444 forwards to 18552223333 When the call comes in Opensips this is my initial invite... INVITE sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK08B4ca619b00ce6405c From: <sip:[email protected]:5060;isup-oli=0>;tag=gK084a85fd To: <sip:[email protected]:5060> Call-ID: [email protected] CSeq: 17719 INVITE Max-Forwards: 93 Allow: INVITE,ACK,CANCEL,BYE,PRACK,UPDATE Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed Contact: <sip:[email protected]:5060> P-Asserted-Identity: <sip:[email protected]:5060> Diversion: <sip:[email protected]:5060>;privacy=off;screen=no; reason=no-answer; counter=1 Supported: 100rel Content-Length: 200 Content-Disposition: session; handling=required Content-Type: application/sdp I see that the initial INVITE shows the toll free number that the call was forwarded to but the TO: shows the original dialed number. My question is can I grab the phone number from the initial INVITE? I have goggled around and tried using the search but it just returns a 1 or 0 for a match. I know once I am able to grab the number from the INVITE can then update the TO:field. I have dumped out almost all of the vars from Opensips and none of them show me the phone number from the initial INVITE. Any help is appreciated. Thanks, James
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
