[OpenSIPS-Users] OpenSIPS 1.4 / Asterisk / Dispatcher / Probe / 4XX Error

Geoffrey Mina geoffreymina at gmail.com
Mon Feb 2 03:57:59 CET 2009


How would I configure the ruri in opensips to provide an extension
similar to sip:ping at asterisk.mydomain.com?

I couldn't get anything other than sip:asterisk.mydomain.com


Thanks.
Geoff

On 2/1/09, Iñaki Baz Castillo <ibc at aliax.net> wrote:
> El Lunes, 2 de Febrero de 2009, Geoffrey Mina escribió:
>> Thanks for pointing me in the right direction.  I didn't have an "s"
>> extension defined in my default context, so asterisk was returning a
>> 404 error because OpenSIPs doesn't specify an extension in the OPTIONS
>> packet.  The "s" is apparently where asterisk dumps anything to a
>> context which doesn't have it's extension properly specified.
>>
>> OPTIONS sip:asterisk1.mydomain.com:5060 SIP/2.0
>> Via: SIP/2.0/UDP 10.2.252.191;branch=z9hG4bKa588.184b8a54.0
>> To: sip:asterisk1.mydomain.com:5060
>> From:
>> sip:monitoring at mydomain.com;tag=df32303fa6e909646461ac9cb721a4cc-1dab
>> CSeq: 10 OPTIONS
>> Call-ID: 214ec97521d915db-3917 at 10.2.252.191
>> Content-Length: 0
>> User-Agent: OpenSIPS (1.4.2-notls (x86_64/linux))
>
>
> That's exactly the point. You can also create a custom extension for this
> purpose:
>
>   OPTIONS sip:ping at asterisk1.mydomain.com:5060 SIP/2.0
>
> In asterisk extensions.conf:
>
>   [context-from-opensips]
>   exten => ping,1,Hangup
>
> --
> Iñaki Baz Castillo
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-- 
Sent from my mobile device



More information about the Users mailing list