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

Iñaki Baz Castillo ibc at aliax.net
Mon Feb 2 03:27:32 CET 2009


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



More information about the Users mailing list