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:[email protected];tag=df32303fa6e909646461ac9cb721a4cc-1dab
> CSeq: 10 OPTIONS
> Call-ID: [email protected]
> 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:[email protected]:5060 SIP/2.0

In asterisk extensions.conf:

  [context-from-opensips]
  exten => ping,1,Hangup

-- 
Iñaki Baz Castillo

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to