[SR-Users] 420 Bad Extension error

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 13 09:07:12 CEST 2016


Hello,

stun and outbound don't have anything to do with DNS resolving.

Run with debug=3 in kamailio.cfg and see the logs for more details.

Cheers,
Daniel


On 12/10/16 16:46, Infinicalls Infinicalls wrote:
> Hi,
>  From the log files, I can see ..
>
> Oct 12 14:43:06 infinicalls /usr/local/sbin/kamailio[13198]: INFO:
> stun [kam_stun.c:169]: stun_parse_header(): INFO: stun_parse_header:
> incomplete header of STUN message
>
> I have modified the $du field now. Instead of taking values from
> REGISTRARIP and REGISTRARPORT, it is now substituted with actual
> values. I have also added outbound.so and stun.so to the registrar
> config.
>
> But, still this error persists.
>
> Can you tell me how to solve this. Thanks.
>
> regards
> Ganesh Kumar
>
>
> On 10/11/16, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
>> Hello,
>>
>> this is typically because the address in r-uri (or outbound proxy $du)
>> cannot be resolved with the DNS server. Try to run with debug=3 in
>> kamailio.cfg and look at the logs for hints about what happens.
>>
>> Cheers,
>> Daniel
>>
>>
>> On 07/10/16 10:48, Infinicalls Infinicalls wrote:
>>> Hi Daniel,
>>>  By pasting the following to the registrar config file, I stopped
>>> getting Bad Extension error. And I am able to stay online. But while
>>> dialing, it gives the "I am terribly sorry..." error.
>>>
>>> modparam("path", "use_received", 1)
>>> modparam("registrar", "use_path", 1)
>>> modparam("registrar", "path_mode", 1)
>>> modparam("registrar", "path_use_received", 1)
>>>
>>> regards
>>> Ganesh Kumar
>>>
>>>
>>> On 10/7/16, Infinicalls Infinicalls <infinicalls at gmail.com> wrote:
>>>> Hi Daniel,
>>>> I am pasting a fresh REGISTER request and the error message here. The
>>>> Proxy and Registrar config files are taken from
>>>> http://kamailio.org/docs/modules/4.2.x/modules/outbound.html
>>>>
>>>>
>>>> -------------
>>>> root at infinicalls:~# ngrep -d any -qt -W byline . port 5060
>>>> interface: any
>>>> filter: (ip or ip6) and ( port 5060 )
>>>> match: .
>>>>
>>>> U 2016/10/07 08:36:50.151818 52.233.25.164:5060 -> 10.0.0.4:5060
>>>> REGISTER sip:infinicalls-proxy1.canadacentral.cloudapp.azure.com SIP/2.0.
>>>> Via: SIP/2.0/UDP
>>>> 10.1.0.4;branch=z9hG4bK8a33.416e8573670e015bec4d14051ceb68a8.0.
>>>> Via: SIP/2.0/UDP
>>>> 10.114.70.81:1330;received=113.193.151.1;rport=1330;branch=z9hG4bKPj832cd09f4be040e89dc5d9e8d17bc531.
>>>> Max-Forwards: 69.
>>>> From: "Balaji"
>>>> <sip:balaji at infinicalls-uk.uksouth.cloudapp.azure.com>;tag=eda6c2494a0742b08f8fbe6254bfa385.
>>>> To: "Balaji" <sip:balaji at infinicalls-uk.uksouth.cloudapp.azure.com>.
>>>> Call-ID: b2b13a3cfeab41228fd8127e18e5acef.
>>>> CSeq: 26376 REGISTER.
>>>> User-Agent: MicroSIP/3.12.3.
>>>> Contact: "Balaji" <sip:balaji at 10.114.70.81:1330;ob>.
>>>> Expires: 300.
>>>> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE,
>>>> NOTIFY, REFER, MESSAGE, OPTIONS.
>>>> Content-Length:  0.
>>>> Path: <sip:10.1.0.4;lr>.
>>>> .
>>>>
>>>>
>>>> U 2016/10/07 08:36:50.154628 10.0.0.4:5060 -> 52.233.25.164:5060
>>>> SIP/2.0 420 Bad Extension.
>>>> Via: SIP/2.0/UDP
>>>> 10.1.0.4;branch=z9hG4bK8a33.416e8573670e015bec4d14051ceb68a8.0;received=52.233.25.164.
>>>> Via: SIP/2.0/UDP
>>>> 10.114.70.81:1330;received=113.193.151.1;rport=1330;branch=z9hG4bKPj832cd09f4be040e89dc5d9e8d17bc531.
>>>> From: "Balaji"
>>>> <sip:balaji at infinicalls-uk.uksouth.cloudapp.azure.com>;tag=eda6c2494a0742b08f8fbe6254bfa385.
>>>> To: "Balaji"
>>>> <sip:balaji at infinicalls-uk.uksouth.cloudapp.azure.com>;tag=b27e1a1d33761e85846fc98f5f3a7e58.0549.
>>>> Call-ID: b2b13a3cfeab41228fd8127e18e5acef.
>>>> CSeq: 26376 REGISTER.
>>>> Contact: <sip:balaji at 10.114.70.81:1330;ob>;expires=300.
>>>> Unsupported: path.
>>>> Path: <sip:10.1.0.4;lr>.
>>>> Supported: outbound.
>>>> P-Registrar-Error: No support for found Path indicated.
>>>> Server: kamailio (4.4.3 (x86_64/linux)).
>>>> Content-Length: 0.
>>>> .
>>>> ---------
>>>>
>>>> Kindly let me know what went wrong. Thanks.
>>>>
>>>> regards
>>>> Ganesh Kumar
>>>>
>> --
>> Daniel-Constantin Mierla
>> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com




More information about the sr-users mailing list