Page 1 of 1

Problem araising due to the changing of service provider!!

PostPosted: Mon Mar 12, 2007 7:53 am
by mohankumar
I have used Binphone as the servive provider and it uses 91 as the prefix.Now they have changed to some other service provider I am getting authentication error since the other service provider is using 0109# as the prefix for the number...Please help me to solve the problem.Let me know if there is any solution to solve this issue.

Please tell me what are the things to be edited in configuration files!!

PostPosted: Mon Mar 12, 2007 12:33 pm
by enjay
Have you called Binfone as they dial string should not have anything to do with authentication errors..

Make sure they are showing up in your registry

iax2 show registry

repeat post

PostPosted: Mon Mar 12, 2007 6:12 pm
by devafree
Remove the leading 0109# , and leave it only before the ${EXTEN}, like this. I have put prefix 9, you can use whatever you normally used. If it is for sify , you have to add a 00 also as the number for say USA has to go out as 0109#001NXXNXXXXXX. Hope it helps.

; dial an 800 outbound number
exten => _9800NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9800NXXXXXX,2,Dial(${TRUNK}/0109#00${EXTEN:1},,tTo)
exten => _9800NXXXXXX,3,Hangup

Regards

devafree

PostPosted: Mon Mar 12, 2007 6:17 pm
by devafree
Also, do not use any Register URI in the sip.conf.

:)

Sample working sip.conf authentication

PostPosted: Mon Mar 12, 2007 6:22 pm
by devafree
[authentication]
;for sify sip termination service
[sip server ip]
type=peer
host=sip.server.ip
username=
secret=
fromuser=
fromdomain=sip.server.ip
context=default ; the context you use as per scratch install
insecure=very
canreinvite=no
diallow=all
allow=g729

PostPosted: Mon Mar 12, 2007 6:30 pm
by devafree
exten => _91800NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91800NXXXXXX,2,Dial(${TRUNK}/0109#00${EXTEN:1},,tTo)
exten => _91800NXXXXXX,3,Hangup

I forgot to put the country code for USA there :) in the prev post

devafree