<div dir="ltr">Here is my registrant dump output<br><br>AOR:: <a href="http://sip:73757799@sip.example.com:5060">sip:73757799@sip.example.com:5060</a> expires=300<br> state:: INTERNAL_ERROR_STATE<br> last_register_sent:: Mon Sep 15 19:40:05 2014<br> registration_t_out:: Mon Sep 15 19:45:07 2014<br> registrar:: sip:<a href="http://sip.example.com">sip.example.com</a><br> binding:: <a href="mailto:sip%3A73757799@sip.example.com">sip:73757799@sip.example.com</a><br> dst_IP:: IPv4 ip=xxx.xxx.xxx.xxx<br><br><br> I am still confused what is "binding_URI" is this my Opensips server IP or Remote SIP provider IP?<br><br>root@opensips# /opt/opensips/sbin/opensipsctl registrant show<br>registrant table<br>+----+-------------------------------+-------+-------------------------------------+------------------------+----------+-----------------+--------------------------------+----------------+--------+---------------+-------------------+<br>| id | registrar | proxy | aor | third_party_registrant | username | password | binding_URI | binding_params | expiry | forced_socket | realm |<br>+----+-------------------------------+-------+-------------------------------------+------------------------+----------+-----------------+--------------------------------+----------------+--------+---------------+-------------------+<br>| <br>| 1 | sip:<a href="http://sip.example.com">sip.example.com</a> | | <a href="http://sip:73757799@sip.example.com:5060">sip:73757799@sip.example.com:5060</a> | | 73757799 | XXXXXXXX | <a href="mailto:sip%3A73757799@sip.example.com">sip:73757799@sip.example.com</a> | transport=UDP | 300 | | <a href="http://sip.example.com">sip.example.com</a> |<br>+----+-------------------------------+-------+-------------------------------------+------------------------+----------+-----------------+--------------------------------+----------------+--------+---------------+-------------------+<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 15, 2014 at 10:08 AM, Ovidiu Sas <span dir="ltr"><<a href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looking at your Contact header that you built, it doesn't seem right:<br>
<sip:7777@182.xx.xx.xx.xx>transport=UDP;expires=300<br>
You need a ';' after '>'. It should look like this:<br>
<sip:7777@182.xx.xx.xx.xx>;transport=UDP;expires=300<br>
<br>
Fix your config and try again.<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Sep 15, 2014 at 10:02 AM, Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>> wrote:<br>
> Any thought? it works with other SIP clients but not Opensips UAC :(<br>
><br>
> On Fri, Sep 12, 2014 at 9:16 PM, Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>> wrote:<br>
>><br>
>> But if i configure same account on my SIP phone it works! why it is<br>
>> misbehaving with Opensips?<br>
>><br>
>> SIP provide will argue if it works with SIP phone then it should work with<br>
>> all devices.<br>
>><br>
>> On Fri, Sep 12, 2014 at 6:39 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> wrote:<br>
>>><br>
>>> You need to tell your provider to fix this.<br>
>>><br>
>>> Regards,<br>
>>> Ovidiu Sas<br>
>>><br>
>>> On Sep 12, 2014 4:49 PM, "Satish Patel" <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>> wrote:<br>
>>>><br>
>>>> What is the solution? do i need to tell my SIP provide or i should do<br>
>>>> something at Opensips side?<br>
>>>><br>
>>>> On Fri, Sep 12, 2014 at 4:47 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> The contact header is malformed:<br>
>>>>> Contact:<br>
>>>>> <<sip:73757799@182.xx.xx.xx.xx:5060>transport=UDP>;q=1;expires=98;received="sip:182.xx.xx.xx.xx:5060",<br>
>>>>> <<sip:7777@182.xx.xx.xx.xx:5060>transport=UDP>;q=1;expires=300;received="sip:182.xx.xx.xx.xx:5060"<br>
>>>>><br>
>>>>> See the double '<'.<br>
>>>>><br>
>>>>> Regards,<br>
>>>>> Ovidiu Sas<br>
>>>>><br>
>>>>> On Sep 12, 2014 4:37 PM, "Satish Patel" <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>> wrote:<br>
>>>>>><br>
>>>>>> Here is the trace, so where is the problem?<br>
>>>>>><br>
>>>>>> #<br>
>>>>>> U 182.xx.xx.xx.xx:5060 -> 216.xx.xx.xx.xx:5060<br>
>>>>>> REGISTER sip:<a href="http://sip.example.com:5060" target="_blank">sip.example.com:5060</a> SIP/2.0.<br>
>>>>>> Via: SIP/2.0/UDP 182.xx.xx.xx.xx:5060;branch=z9hG4bK60e.9f8b83d3.0.<br>
>>>>>> To: <a href="http://sip:73757799@sip.example.com:5060" target="_blank">sip:73757799@sip.example.com:5060</a>.<br>
>>>>>> From: <<a href="http://sip:73757799@sip.example.com:5060" target="_blank">sip:73757799@sip.example.com:5060</a>>;tag=40aeb.<br>
>>>>>> CSeq: 2 REGISTER.<br>
>>>>>> Call-ID: e6a44cb93fd53890295e3cecfed.<br>
>>>>>> Max-Forwards: 70.<br>
>>>>>> Content-Length: 0.<br>
>>>>>> User-Agent: OpenSIPS (1.12.0dev-notls (x86_64/linux)).<br>
>>>>>> Contact: <sip:7777@182.xx.xx.xx.xx>transport=UDP;expires=300.<br>
>>>>>> Authorization: Digest username="73757799", realm="<a href="http://sip.example.com" target="_blank">sip.example.com</a>",<br>
>>>>>> nonce="VBNMPFQTSxBkZqUtsDCom023iuZ2evbn", uri="sip:<a href="http://sip.example.com:5060" target="_blank">sip.example.com:5060</a>",<br>
>>>>>> qop=auth, nc=00000001, cnonce="220797507",<br>
>>>>>> response="8149149a7b11826e409d2954a35939d1", algorithm=MD5.<br>
>>>>>> .<br>
>>>>>><br>
>>>>>> #<br>
>>>>>> U 216.xx.xx.xx.xx:5060 -> 182.xx.xx.xx.xx:5060<br>
>>>>>> SIP/2.0 200 OK.<br>
>>>>>> Via: SIP/2.0/UDP 182.xx.xx.xx.xx:5060;branch=z9hG4bK60e.9f8b83d3.0.<br>
>>>>>> To:<br>
>>>>>> sip:73757799@sip.example.com:5060;tag=28f708707fdbe632f4ca1ebbf5e1be15-5a71.<br>
>>>>>> From: <<a href="http://sip:73757799@sip.example.com:5060" target="_blank">sip:73757799@sip.example.com:5060</a>>;tag=40aeb.<br>
>>>>>> CSeq: 2 REGISTER.<br>
>>>>>> Call-ID: e6a44cb93fd53890295e3cecfed.<br>
>>>>>> Contact:<br>
>>>>>> <<sip:73757799@182.xx.xx.xx.xx:5060>transport=UDP>;q=1;expires=98;received="sip:182.xx.xx.xx.xx:5060",<br>
>>>>>> <<sip:7777@182.xx.xx.xx.xx:5060>transport=UDP>;q=1;expires=300;received="sip:182.xx.xx.xx.xx:5060".<br>
>>>>>> Content-Length: 0.<br>
>>>>>><br>
>>>>>> #<br>
>>>>>> U 216.xx.xx.xx.xx:5060 -> 182.xx.xx.xx.xx:5060<br>
>>>>>> OPTIONS sip:182.xx.xx.xx.xx:5060 SIP/2.0.<br>
>>>>>> Max-Forwards: 10.<br>
>>>>>> Record-Route: <sip:216.xx.xx.xx.xx;lr>.<br>
>>>>>> Via: SIP/2.0/UDP<br>
>>>>>> 216.xx.xx.xx.xx;branch=z9hG4bK3e46.e72ab63026fa3572f78124328a048c26.0.<br>
>>>>>> Via: SIP/2.0/UDP 70.xxx.xxx.xxx.xxx:5060;branch=0.<br>
>>>>>> Route: <sip:216.xx.xx.xx.xx;lr;received='sip:182.xx.xx.xx.xx:5060'>.<br>
>>>>>> From: sip:ping@invalid;tag=5ba30f69.<br>
>>>>>> To: sip:182.xx.xx.xx.xx:5060.<br>
>>>>>> Call-ID: 0c26e475-b1d63378-dc72c58@70.xxx.xxx.xxx.xxx.<br>
>>>>>> CSeq: 1 OPTIONS.<br>
>>>>>> Content-Length: 0.<br>
>>>>>> .<br>
>>>>>><br>
>>>>>> #<br>
>>>>>> U 182.xx.xx.xx.xx:5060 -> 216.xx.xx.xx.xx:5060<br>
>>>>>> SIP/2.0 484 Address Incomplete.<br>
>>>>>> Via: SIP/2.0/UDP<br>
>>>>>> 216.xx.xx.xx.xx;received=216.xx.xx.xx.xx;rport=5060;branch=z9hG4bK3e46.e72ab63026fa3572f78124328a048c26.0.<br>
>>>>>> Via: SIP/2.0/UDP 70.xxx.xxx.xxx.xxx:5060;branch=0.<br>
>>>>>> From: sip:ping@invalid;tag=5ba30f69.<br>
>>>>>> To:<br>
>>>>>> sip:182.xx.xx.xx.xx:5060;tag=c223d9b6a566b5450d01aad8764c61fe.b26e.<br>
>>>>>> Call-ID: 0c26e475-b1d63378-dc72c58@70.xxx.xxx.xxx.xxx.<br>
>>>>>> CSeq: 1 OPTIONS.<br>
>>>>>> Server: OpenSIPS (1.12.0dev-notls (x86_64/linux)).<br>
>>>>>> Content-Length: 0.<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> On Fri, Sep 12, 2014 at 3:23 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>><br>
>>>>>> wrote:<br>
>>>>>>><br>
>>>>>>> Take a look at RFC3261:<br>
>>>>>>> <a href="http://tools.ietf.org/html/rfc3261#section-10.2" target="_blank">http://tools.ietf.org/html/rfc3261#section-10.2</a><br>
>>>>>>> Contact: REGISTER requests MAY contain a Contact header field with<br>
>>>>>>> zero or more values containing address bindings.<br>
>>>>>>><br>
>>>>>>> The error that you have is related to the Contact header in the<br>
>>>>>>> reply.<br>
>>>>>>> Check the reply received from the registrar.<br>
>>>>>>><br>
>>>>>>> Regards,<br>
>>>>>>> Ovidiu Sas<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On Fri, Sep 12, 2014 at 3:03 PM, Satish Patel <<a href="mailto:satish.txt@gmail.com">satish.txt@gmail.com</a>><br>
>>>>>>> wrote:<br>
>>>>>>> > In logs i am getting this error<br>
>>>>>>> ><br>
>>>>>>> > ERROR:uac_registrant:run_reg_tm_cback: failed to parse Contact body<br>
>>>>>>> ><br>
>>>>>>> > AOR:: <a href="http://sip:9999@sip.example.com:5060" target="_blank">sip:9999@sip.example.com:5060</a> expires=300<br>
>>>>>>> > state:: INTERNAL_ERROR_STATE<br>
>>>>>>> > last_register_sent:: Sat Sep 13 00:30:28 2014<br>
>>>>>>> > registration_t_out:: Sat Sep 13 00:35:28 2014<br>
>>>>>>> > registrar:: sip:<a href="http://sip.example.com:5060" target="_blank">sip.example.com:5060</a><br>
>>>>>>> > binding:: sip:9999@182.xxx.xxx.xxx:5060<br>
>>>>>>> > dst_IP:: IPv4 ip=<a href="http://sip.example.com" target="_blank">sip.example.com</a><br>
>>>>>>> ><br>
>>>>>>> ><br>
>>>>>>> > I have one more gateway which is asterisk one working fine, what is<br>
>>>>>>> > the<br>
>>>>>>> > binding_URI?<br>
>>>>>>> ><br>
>>>>>>> ><br>
>>>>>>> > _______________________________________________<br>
>>>>>>> > Users mailing list<br>
>>>>>>> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>>>>> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>>>>> ><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> --<br>
>>>>>>> VoIP Embedded, Inc.<br>
>>>>>>> <a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
>>>>>>><br>
>>>>>>> _______________________________________________<br>
>>>>>>> Users mailing list<br>
>>>>>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> Users mailing list<br>
>>>>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> Users mailing list<br>
>>>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Users mailing list<br>
>>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
<br>
--<br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>