[asterisk-users] sip to sip ?

Chris Hills chills at ne-worcs.ac.uk
Tue Feb 20 03:22:32 MST 2007


Dennis Kavadas wrote:

> hi all
>
> i've just setup an * box and want to test voip calling, initially from
> sip user to sip user...
>
> local sip users can call each other, no issues.
>
> problem arises when i try and call a remote sip account, my * box
> always returns "SIP/2.0 404 Not Found"
>
> any ideas ?
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

Dennis

I use the following as my default context:-

[default]
exten => _X.,1,NoOp(Incoming Call from ${CALLERID} for 
${EXTEN}@${SIPDOMAIN})
exten => _X.,2,GotoIf($[${LEN(${SIPDOMAIN})} = 0]?10)
exten => _X.,3,GotoIf($[${SIPDOMAIN} = ${MYDOMAIN}]?10)
exten => _X.,4,GotoIf($[${SIPDOMAIN} = ${MYFQDN}]?10)
exten => _X.,5,GotoIf($[${SIPDOMAIN} = ${MYIP}]?10)
exten => _X.,6,GotoIf($[${SIPDOMAIN} = ${MYFQDN}:5060]?10)
exten => _X.,7,NoOp(@${SIPDOMAIN} is remote - forwarding...)
exten => _X.,8,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _X.,9,HangUp()
exten => _X.,10,Goto(default-noturi,${EXTEN},1)
exten => h,1,HangUp()
exten => s-BUSY,1,Congestion
exten => s-CHANUNAVAIL,1,Congestion
exten => s-CONGESTION,1,Congestion

[macro-uridial]
exten => s,1,NoOp(Outbound SIP URI call ${ARG1})
exten => s,2,SetCIDNum(0123456789)
exten => s,3,Dial(SIP/${ARG1})
exten => s,4,Congestion()


HTH

-- 
Chris Hills                       | Tel: +44 (0)1527 572754
IT Services                       | Fax: +44 (0)1527 572901
North East Worcestershire College | Web: http://www.ne-worcs.ac.uk/




More information about the asterisk-users mailing list