<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Check the uac_replace_from() function[1].<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.3.x/uac.html#idp5591536">http://www.opensips.org/html/docs/modules/2.3.x/uac.html#idp5591536</a><br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 12/10/2017 12:28 PM, mas_66 via
Users wrote:<br>
</div>
<blockquote type="cite" cite="mid:E1eNyqo-00032Q-EM@opensips.org">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div>Hi Everyone </div>
<div>Any idea on how to change the FROM domain on a call?</div>
<div>I have more than one NIC and my calls fail because the
sending domain to my Carrier is incorrect </div>
<div>Thanks</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div id="composer_signature">
<div style="font-size:85%;color:#575757" dir="auto">Sent from
Samsung Mobile on O2</div>
</div>
<div><br>
</div>
<div style="font-size:100%;color:#000000"><!-- originalMessage -->
<div>-------- Original message --------</div>
<div>From: mas_66--- via Users <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>
</div>
<div>Date: 29/11/2017 11:55 (GMT+00:00) </div>
<div>To: <a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>, OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a> </div>
<div>Subject: Re: [OpenSIPS-Users] Opensips 2.3.2 </div>
<div><br>
</div>
</div>
Hi Bogdan<br>
I tried your suggestion but unfortunately i am still presenting
the incorrect <br>
domain when i try to dial 02088253053. So i am still trying to
dial out From: <br>
"6691"<a class="moz-txt-link-rfc2396E" href="mailto:sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a> instead of <br>
"6691"<a class="moz-txt-link-rfc2396E" href="mailto:sip:6691@172.23.100.55"><sip:6691@172.23.100.55></a>. below is the udp stream if
it helps.<br>
<br>
Thanks <br>
Mas<br>
<br>
<br>
<br>
U 172.23.100.250:5060 -> 172.23.100.55:5060<br>
OPTIONS sip:172.23.100.55:5060 SIP/2.0.<br>
Via: SIP/2.0/UDP
172.23.100.250:5060;branch=z9hG4bK00Bc649aa94943d13d3.<br>
From: <sip:172.23.100.250>;tag=gK007fa50f.<br>
To: <sip:172.23.100.55>.<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:35425181_134052342@172.23.100.250">35425181_134052342@172.23.100.250</a>.<br>
CSeq: 500409 OPTIONS.<br>
Max-Forwards: 1.<br>
Allow:
INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,UPDATE,<br>
OPTIONS,MESSAGE,PUBLISH.<br>
Accept: application/sdp, application/isup, application/dtmf,
application/dtmf-<br>
relay, multipart/mixed.<br>
Contact: <sip:172.23.100.250:5060>.<br>
Content-Length: 0.<br>
.<br>
<br>
<br>
U 172.23.100.55:5060 -> 172.23.100.250:5060<br>
SIP/2.0 484 Address Incomplete.<br>
Via: SIP/2.0/UDP
172.23.100.250:5060;branch=z9hG4bK00Bc649aa94943d13d3.<br>
From: <sip:172.23.100.250>;tag=gK007fa50f.<br>
To:
<sip:172.23.100.55>;tag=5588ad0e2fdda81c4b33ac6770683a01.1b10.<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:35425181_134052342@172.23.100.250">35425181_134052342@172.23.100.250</a>.<br>
CSeq: 500409 OPTIONS.<br>
Server: OpenSIPS (2.3.2 (x86_64/linux)).<br>
Content-Length: 0.<br>
.<br>
<br>
<br>
U 172.23.100.55:5060 -> 172.23.100.250:5060<br>
INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:02088253053@172.23.100.250">sip:02088253053@172.23.100.250</a> SIP/2.0.<br>
Record-Route: <sip:172.23.100.55;r2=on;lr;did=bb3.90ad9f94>.<br>
Record-Route: <sip:192.168.54.55;r2=on;lr;did=bb3.90ad9f94>.<br>
Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
Via: SIP/2.0/UDP
192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-<br>
524287-1---3b2989732e03e469;rport=12328.<br>
Max-Forwards: 69.<br>
Contact:
<a class="moz-txt-link-rfc2396E" href="mailto:sip:6691@55.59.210.100:12328;rinstance=f9fd12e599850665"><sip:6691@55.59.210.100:12328;rinstance=f9fd12e599850665></a>.<br>
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>.<br>
From: "6691"<a class="moz-txt-link-rfc2396E" href="mailto:sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
CSeq: 1 INVITE.<br>
Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO,
OPTIONS, <br>
MESSAGE.<br>
Content-Type: application/sdp.<br>
Supported: replaces.<br>
User-Agent: X-Lite release 5.0.3 stamp 88254.<br>
Content-Length: 340.<br>
P-hint: outbound.<br>
.<br>
v=0.<br>
o=- 13156428154656607 1 IN IP4 192.168.200.162.<br>
s=X-Lite release 5.0.3 stamp 88254.<br>
c=IN IP4 192.168.200.162.<br>
t=0 0.<br>
m=audio 59698 RTP/AVP 9 8 120 0 84 101.<br>
a=rtpmap:120 opus/48000/2.<br>
a=fmtp:120 useinbandfec=1; usedtx=1; maxaveragebitrate=64000.<br>
a=rtpmap:84 speex/16000.<br>
a=rtpmap:101 telephone-event/8000.<br>
a=fmtp:101 0-15.<br>
a=sendrecv.<br>
<br>
<br>
U 172.23.100.250:5060 -> 172.23.100.55:5060<br>
SIP/2.0 100 Trying.<br>
Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
Via: SIP/2.0/UDP
192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-<br>
524287-1---3b2989732e03e469;rport=12328.<br>
From: "6691"<a class="moz-txt-link-rfc2396E" href="mailto:sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>;tag=gK04ead159.<br>
Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
CSeq: 1 INVITE.<br>
Content-Length: 0.<br>
.<br>
<br>
<br>
U 172.23.100.250:5060 -> 172.23.100.55:5060<br>
SIP/2.0 488 Not Acceptable Here.<br>
Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
Via: SIP/2.0/UDP
192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-<br>
524287-1---3b2989732e03e469;rport=12328.<br>
From: "6691"<a class="moz-txt-link-rfc2396E" href="mailto:sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>;tag=gK04ead159.<br>
Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
CSeq: 1 INVITE.<br>
Content-Length: 0.<br>
.<br>
<br>
<br>
U 172.23.100.55:5060 -> 172.23.100.250:5060<br>
ACK <a class="moz-txt-link-abbreviated" href="mailto:sip:02088253053@172.23.100.250">sip:02088253053@172.23.100.250</a> SIP/2.0.<br>
Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
From: "6691"<a class="moz-txt-link-rfc2396E" href="mailto:sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>;tag=gK04ead159.<br>
CSeq: 1 ACK.<br>
Max-Forwards: 70.<br>
User-Agent: OpenSIPS (2.3.2 (x86_64/linux)).<br>
Content-Length: 0.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<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><br>
<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>