My extension.conf i have this in the last line of extension.conf [testvoip] exten => _1.,1,Dial(SIP/${EXTEN}@ipofprovider,,r) my sip.conf [general] context=default port=6060 bindaddr=0.0.0.0 callerid=No CallID disallow=allow allow=g729 [testvoip] context=testvoip type=peer host=ipofprovider rtptimeout=60 disallow=all allow=g729 my ser.cfg if (method == "INVITE") { if (uri =~ "sip:1[0-9]{10}@*"){ log(1, "Forwarding to Asterisk\n"); rewritehostport("202.202.202.202:6060"); t_relay(); break; } }