<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello,<br>
<br>
Who is doing the actual forward ? Is it a SIP proxy / entity
located before OpenSIPS ?<br>
<br>
Just by looking at the INVITE message you've posted, the
originally dialled number ( <font face="arial" size="2"
color="black"><font face="arial">8585554444 </font></font>) is
located in the TO username ( readable via the $tU variable in the
script ).<br>
<br>
Best Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
On 12.12.2014 03:57, <a class="moz-txt-link-abbreviated" href="mailto:discodog62@aol.com">discodog62@aol.com</a> wrote:<br>
</div>
<blockquote
cite="mid:8D1E3C6281B5957-1994-8677@webmail-vm185.sysops.aol.com"
type="cite"><font face="arial" size="2" color="black">
<div><font face="arial">Good day to all. </font></div>
<div><font face="arial">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</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">I have an inbound SIP call. This call
is actually a forward. When I dial the number 8585554444 it
is forwarded to 8585554444. </font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">Dialed number: 8585554444 forwards to
18552223333</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">When the call comes in Opensips this is
my initial invite...</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">INVITE
<a class="moz-txt-link-abbreviated" href="mailto:sip:+18552223333@111.222.333.444:5060">sip:+18552223333@111.222.333.444:5060</a> SIP/2.0</font></div>
<div><font face="arial">Via: SIP/2.0/UDP
11.11.11.11:5060;branch=z9hG4bK08B4ca619b00ce6405c</font></div>
<div><font face="arial">From:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:+18586669999@11.11.11.11:5060;isup-oli=0"><sip:+18586669999@11.11.11.11:5060;isup-oli=0></a>;tag=gK084a85fd</font></div>
<div><font face="arial">To:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:8585554444@111.222.333.444:5060"><sip:8585554444@111.222.333.444:5060></a></font></div>
<div><font face="arial">Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:537432242_53736858@11.11.11.11">537432242_53736858@11.11.11.11</a></font></div>
<div><font face="arial">CSeq: 17719 INVITE</font></div>
<div><font face="arial">Max-Forwards: 93</font></div>
<div><font face="arial">Allow:
INVITE,ACK,CANCEL,BYE,PRACK,UPDATE</font></div>
<div><font face="arial">Accept: application/sdp,
application/isup, application/dtmf, application/dtmf-relay,
multipart/mixed</font></div>
<div><font face="arial">Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:+18586669999@11.11.11.11:5060"><sip:+18586669999@11.11.11.11:5060></a></font></div>
<div><font face="arial">P-Asserted-Identity:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:+18586669999@11.11.11.11:5060"><sip:+18586669999@11.11.11.11:5060></a></font></div>
<div><font face="arial">Diversion:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:+18585554444@11.11.11.11:5060"><sip:+18585554444@11.11.11.11:5060></a>;privacy=off;screen=no;
reason=no-answer; counter=1</font></div>
<div><font face="arial">Supported: 100rel</font></div>
<div><font face="arial">Content-Length: 200</font></div>
<div><font face="arial">Content-Disposition: session;
handling=required</font></div>
<div><font face="arial">Content-Type: application/sdp</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">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. </font></div>
<div><font face="arial">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.</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">Any help is appreciated.</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">Thanks,</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial"><br>
</font></div>
<div><font face="arial">James</font></div>
<div style="color: black; font-family: arial; font-size: 10pt;"><br>
</div>
</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>