[OpenSIPS-Users] Opensips 2.3.2

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Dec 11 04:03:04 EST 2017


Hi Mas,

Use the uac_replace_from() if you need to change the URI or display in 
the FROM hdr:
http://www.opensips.org/html/docs/modules/2.3.x/uac.html#idp5583120

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

On 12/10/2017 12:28 PM, mas_66 wrote:
> Hi Everyone
> Any idea on how to change the FROM domain on a call?
> I have more than one NIC and my calls fail because the sending domain 
> to my Carrier is incorrect
> Thanks
>
>
>
> Sent from Samsung Mobile on O2
>
> -------- Original message --------
> From: mas_66--- via Users <users at lists.opensips.org>
> Date: 29/11/2017 11:55 (GMT+00:00)
> To: bogdan at opensips.org, OpenSIPS users mailling list 
> <users at lists.opensips.org>
> Subject: Re: [OpenSIPS-Users] Opensips 2.3.2
>
> Hi Bogdan
> I tried your suggestion but unfortunately i am still presenting the 
> incorrect
> domain when i try to dial 02088253053. So i am still trying to dial 
> out From:
> "6691"<sip:6691 at 159.99.8.111> instead of
> "6691"<sip:6691 at 172.23.100.55>. below is the udp stream if it helps.
>
> Thanks
> Mas
>
>
>
> U 172.23.100.250:5060 -> 172.23.100.55:5060
> OPTIONS sip:172.23.100.55:5060 SIP/2.0.
> Via: SIP/2.0/UDP 172.23.100.250:5060;branch=z9hG4bK00Bc649aa94943d13d3.
> From: <sip:172.23.100.250>;tag=gK007fa50f.
> To: <sip:172.23.100.55>.
> Call-ID: 35425181_134052342 at 172.23.100.250.
> CSeq: 500409 OPTIONS.
> Max-Forwards: 1.
> Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,UPDATE,
> OPTIONS,MESSAGE,PUBLISH.
> Accept: application/sdp, application/isup, application/dtmf, 
> application/dtmf-
> relay, multipart/mixed.
> Contact: <sip:172.23.100.250:5060>.
> Content-Length: 0.
> .
>
>
> U 172.23.100.55:5060 -> 172.23.100.250:5060
> SIP/2.0 484 Address Incomplete.
> Via: SIP/2.0/UDP 172.23.100.250:5060;branch=z9hG4bK00Bc649aa94943d13d3.
> From: <sip:172.23.100.250>;tag=gK007fa50f.
> To: <sip:172.23.100.55>;tag=5588ad0e2fdda81c4b33ac6770683a01.1b10.
> Call-ID: 35425181_134052342 at 172.23.100.250.
> CSeq: 500409 OPTIONS.
> Server: OpenSIPS (2.3.2 (x86_64/linux)).
> Content-Length: 0.
> .
>
>
> U 172.23.100.55:5060 -> 172.23.100.250:5060
> INVITE sip:02088253053 at 172.23.100.250 SIP/2.0.
> Record-Route: <sip:172.23.100.55;r2=on;lr;did=bb3.90ad9f94>.
> Record-Route: <sip:192.168.54.55;r2=on;lr;did=bb3.90ad9f94>.
> Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.
> Via: SIP/2.0/UDP 
> 192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-
> 524287-1---3b2989732e03e469;rport=12328.
> Max-Forwards: 69.
> Contact: <sip:6691 at 55.59.210.100:12328;rinstance=f9fd12e599850665>.
> To: <sip:02088253053 at 172.23.100.250>.
> From: "6691"<sip:6691 at 159.99.8.111>;tag=1a24473b.
> Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.
> CSeq: 1 INVITE.
> Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, OPTIONS,
> MESSAGE.
> Content-Type: application/sdp.
> Supported: replaces.
> User-Agent: X-Lite release 5.0.3 stamp 88254.
> Content-Length: 340.
> P-hint: outbound.
> .
> v=0.
> o=- 13156428154656607 1 IN IP4 192.168.200.162.
> s=X-Lite release 5.0.3 stamp 88254.
> c=IN IP4 192.168.200.162.
> t=0 0.
> m=audio 59698 RTP/AVP 9 8 120 0 84 101.
> a=rtpmap:120 opus/48000/2.
> a=fmtp:120 useinbandfec=1; usedtx=1; maxaveragebitrate=64000.
> a=rtpmap:84 speex/16000.
> a=rtpmap:101 telephone-event/8000.
> a=fmtp:101 0-15.
> a=sendrecv.
>
>
> U 172.23.100.250:5060 -> 172.23.100.55:5060
> SIP/2.0 100 Trying.
> Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.
> Via: SIP/2.0/UDP 
> 192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-
> 524287-1---3b2989732e03e469;rport=12328.
> From: "6691"<sip:6691 at 159.99.8.111>;tag=1a24473b.
> To: <sip:02088253053 at 172.23.100.250>;tag=gK04ead159.
> Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.
> CSeq: 1 INVITE.
> Content-Length: 0.
> .
>
>
> U 172.23.100.250:5060 -> 172.23.100.55:5060
> SIP/2.0 488 Not Acceptable Here.
> Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.
> Via: SIP/2.0/UDP 
> 192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-
> 524287-1---3b2989732e03e469;rport=12328.
> From: "6691"<sip:6691 at 159.99.8.111>;tag=1a24473b.
> To: <sip:02088253053 at 172.23.100.250>;tag=gK04ead159.
> Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.
> CSeq: 1 INVITE.
> Content-Length: 0.
> .
>
>
> U 172.23.100.55:5060 -> 172.23.100.250:5060
> ACK sip:02088253053 at 172.23.100.250 SIP/2.0.
> Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.
> From: "6691"<sip:6691 at 159.99.8.111>;tag=1a24473b.
> Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.
> To: <sip:02088253053 at 172.23.100.250>;tag=gK04ead159.
> CSeq: 1 ACK.
> Max-Forwards: 70.
> User-Agent: OpenSIPS (2.3.2 (x86_64/linux)).
> Content-Length: 0.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20171211/24ed0dc3/attachment.html>


More information about the Users mailing list