Getting Asterisk To Use The SIP Path Header
Hi,
How do I get asterisk to use the SIP Path header value from registrations when calling devices?
I am trying to use opensips as a proxy for asterisk, when a client registers I am adding the Path header before forwarding the REGISTER onto asterisk. The problem is when asterisk recieves an INVITE it does not use the value from the Path header, it is sending directly to the device. Can anyone point me in the right direction as to why?
I am using asterisk 13.6.0 with the default configuration, the changes I
have made are:
In sip.conf I have uncommented:
supportpath=yes rtsavepath=yes
In users.conf I have:
[6000]
secret host=dynamic context = default
[6001]
secret host=dynamic context = default
[6002]
secret host=dynamic context = default
In extensions.conf I have made default like:
[default]
;include => demo exten => 6000,1,Dial(SIP/6000,18)
exten => 6000,n,Hangup()
exten => 6002,1,Dial(SIP/6002,18)
exten => 6002,n,Hangup()
exten => 6001,1,Dial(SIP/6001,18)
exten => 6001,n,Hangup()
Below is the 6000 user REGISTER going from opensips (10.15.20.137:5060)
into asterisk (192.168.68.68:5070) with the Path header.
U 2016/01/06 10:04:23.399170 10.15.20.137:5060 -> 192.168.68.68:5070
REGISTER sip:10.15.20.137 SIP/2.0. Via: SIP/2.0/UDP 10.15.20.137:5060;branch=z9hG4bKcc2c.b40fb511.0. Via: SIP/2.0/UDP 10.15.20.53:52666
;received.15.20.53;branch=z9hG4bK-d8754z-91422161f08a7943-1—d8754z-;rportR666. Max-Forwards: 69. Contact:
One thought on - Getting Asterisk To Use The SIP Path Header
If anyone else is having this issue, asterisk 1.8.32.3 uses the Path header as expected, if you want to follow progress I’ve created a bug report:
https://issues.asterisk.org/jira/browse/ASTERISK-25666