[Spce-user] CE 2.6 - send reply to contact

Klaus Peter v. Friedeburg friedeburg at aco.de
Thu Sep 20 15:09:59 EDT 2012


Hi,

I have problems to build up the following szenario:
My PSTN-Provider have a SIP-loadbalancer with IP 1.1.1.1. This IP is the peering.
But the replys must be send to an other the IP ex. 1.1.1.2 (written down in contact header)

How is a way to send my replys to the contact ?

I think I must use the fix_nated_contact() function but I don’t know where.
Using CE 2.6

Her is an example of sip-packet:
############################################
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 2.2.2.214;branch=z9hG4bK59b8.88f2435c752ae730795757ff2fb41c0f.0
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bKWwU6ta5w;rport=5080
From: <sip:123456789 at blabla.de>;tag=2B9E9B0D-505B668F000A7564-60852700
To: <sip:123456791 at 1.1.1.1>;tag=505B668F-5683ACD-0AB9FC95
CSeq: 10 INVITE
Call-ID: F0F73B5AB9631DC5 at 212.101.37.17_b2b-1
Record-Route: <sip:1.1.1.1;lr>
Record-Route: <sip:2.2.2.214;r2=on;lr=on;ftag=2B9E9B0D-505B668F000A7564-60852700;ngcplb=yes>
Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=2B9E9B0D-505B668F000A7564-60852700;ngcplb=yes>
Contact: <sip:1.1.1.2:5060;transport=udp>
MIME-Version: 1.0
Require: 100rel
RSeq: 1
Allow: CANCEL,INFO,OPTIONS,BYE,PRACK,UPDATE
Content-Type: application/sdp
Content-Length: 383

v=0
o=hiQ9200 3743020120820205511 391249998 IN IP4 62.180.246.13
s=Phone Call via hiQ9200 SIPCA
c=IN IP4 1.1.1.3
t=0 0
m=audio 24246 RTP/AVP 8 0 102 101
a=rtpmap:8 PCMA/8000
a=fmtp:8 vad=no
a=rtpmap:0 PCMU/8000
a=fmtp:0 vad=no
a=rtpmap:102 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sqn: 0
a=cdsc: 1 image udptl t38
a=sendrecv
a=ptime:30
############################

Greeting

Klaus Peter





More information about the Spce-user mailing list