[afnog] INOC-DBA with Asterisk

Randy Bush randy at psg.com
Wed Mar 15 17:54:44 EAT 2006


> sip.conf
> 
> register =>21452*723:myusername:iamfoolishtotellyou at inoc-dba.pch.net/104
> 
> [inocdba]
> type=friend
> host=inoc-dba.pch.net
> port=5060
> username=myusername
> fromuser=21452*723
> auth=MD5
> secret=iamfoolishtotellyou
> canreinvite=yes
> context=local
> insecure=very
> 
> extensions.conf
> 
> [outgoing]
> exten => _6XXXX.,1,SetCIDName(Sunday Folayan)
> exten => _6XXXX.,2,SetCIDNum(21452*723)
> exten => _6XXXX.,3,Dial(SIP/${EXTEN:1}@inocdba)
> exten => _6XXXX.,4,Congestion
> exten => _6XXXX.,5,Hangup
> 
> I can be reached on 21452*723. It rings on my desk phone, PC phone, and 
> everywhere I choose :-)

mine looks enough different it may be worth this post

register => 3130:password:username at inoc-dba.pch.net:5060:/3130

[inoc-dba]
type=friend
host=inoc-dba.pch.net
port=5060
username=username
fromuser=username
auth=md5
secret=UmustBkidding
context=from-inoc-dba
insecure=very
canreinvite=no

and extensions.conf

[dial-inoc]				     ; SIP to INOC-DBA
exten => s,1,NoOp(dial-inoc)
exten => s,2,Answer
exten => s,3,Background(zz-dial-inoc)
exten => _3130,1,Macro(fwd-call,1)	     ; detect calling self
exten => _3130*0,1,Macro(fwd-call,1)
exten => _X.,1,SetCallerId(RGnet <3130>|a)   ; otherwise route to inoc
exten => _X.,2,Dial(SIP/${EXTEN}@inoc-dba.pch.net,60,tr)
exten => _X.,3,Hangup()
exten => h,1,Hangup()
exten => i,1,GoTo(s,2)
exten => t,1,GoTo(s,2)

[from-inoc-dba]
exten => s,1,NoOp(from-inoc-dba)	     ; SIP calls from INOC-DBA
exten => _3130,1,Macro(fwd-call,1)	     ; to randy no matter what
exten => _3130*0,1,Macro(fwd-call,1)
exten => myusername,1,Macro(fwd-call,1)

randy




More information about the afnog mailing list