[Resolved] Outgoing SIP Ext syntax?!

Been working on this for 2 hours now and my heads a shed.

Regsitered with sipgate and incoming working fine, however get the following message when dialling out.

Verbosity is at least 12 [Mar 6 14:56:22] WARNING[31818]: pbx.c:1821 pbx_extension_helper: No application '' for extension (sipout, 07841xxxxxx, 1) == Spawn extension (sipout, 07841xxxxxx, 1) exited non-zero on 'SIP/6000-09ef2618'

So the dialplan is picking up the ext and trying to dial via the correct line

here is sip.conf and my extensions.conf


[General]
register => 1046740:xxxxxxxx@sipgate.co.uk/1046740

[6000]
type=friend
context=sipout 
host=dynamic
secret=6000

[sipgateout]
type=friend
insecure=very
nat=yes
username=1046740
fromuser=1046740
fromdomain=sipgate.co.uk
secret=xxxxxx
host=sipgate.co.uk
context=incomingsip
qualify=yes
[incomingsip]
exten => 1046740,1,Dial(SIP/6000)
include => phones

[sipout]
exten => _X.,1,(Dial(SIP/sipgateout/${exten})
include => phones

I got two * books and both reference my line in sipout differently.

I suspect it may be either

  1. My contexts are muddled
    or
  2. the exten => _X.,1,(Dial(SIP/sipgateout/${exten}) is incorrect syntax

The above should be without the ( before Dial

[sipout]
exten => _X.,1,Dial(SIP/sipgateout/${EXTEN})
include => phones

Cheers.

Marco Bruni

Cant believe it

Just spotted that and was coming back to report. DAMN typo :smile:

trying again…

hmmmm, strange

    -- Executing [07841xxxxxx@phones:1] Dial("SIP/6000-0822f880", "SIP/sipgateout/") in new stack
    -- Called sipgateout/
    -- SIP/sipgateout-08234910 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/6000-0822f880' status is 'CONGESTION'

Any one seen this before?

Fixed

correct syntax is

exten => _X.,1,Dial(SIP/${EXTEN}@sipgateout)

rather than

exten => _X.,1,Dial(SIP/sipgateout/${exten})

which gave congestion!