Externals calls between asterisk and twilio

Hello, Hope you’re well. I have a problem in my asterisk configuration. In fact I created a twilio account and configured my asterisk server to do externals calls with twilio. But when I initialize call in Zoiper with the number that Twilio assigned to me, I have an error: Everyone is busy/congested at this tme (1:0/0/1). I need help please, thank you.
This is the error I have in asterisk console :

Executing
[+14159425751@from-internal: 1] Set(“PJSIP/6001-00000002”, “CALLERID (all)=“6001 <+14159425751>””) in new stack
Executing [+14159425751@from- internal:2] Dial(“PJSIP/6001-00000002”, “PJSIP/+1+14159425751@twilio_endpoint”) in new stack
Called PJSIP/+1+14159425751@twilio_endpoint
Everyone is busy/congested at this time (1:0/0/1)
Executing [+14159425751@from-internal:3] Hangup(“PJSIP/6001-00000002”, " ") in new stack
Spawn extension (from-internal, +14159425751, 3) exited non-zero on ‘PJSIP/6001-00000002’

Your dialplan appears to be prepending +1 to a number that already starts with that.

You haven’t told us what your dialplan is, so we can’t say why that is happening.

Okay this is my extensions.conf file:

[from-internal]
exten => 6001,1, Answer ()
exten => 6001,n, Dial(PJSIP/6001,60)
exten => 6001,n, Wait(1)
exten => 6001,n, Playback(hello-world)
exten => 6001,n,Hangup()
exten => 6001,n, VoiceMail (6001@main)

exten => 6002,1, Answer ()
exten => 6002,n, Dial (PJSIP/6002,60)
exten => 6002,n, Wait(1)
exten =>6002,n, Playback(hello-world)
exten => 6002,n,Hangup()
exten => 6002,n, VoiceMail (6002@main)

exten => 8001,1, Hangup ()
exten => 8001,n, VoiceMailMain (7001@main)

exten => 8002,1, Hangup ()
exten => 8002,n, VoiceMailMain (7002@main)

exten => 600,1, Answer ()
exten => 600, n, Playback (demo-echotest)
exten => 600,n, Echo()
exten => 600,n, Playback(demo-echodone)
exten => 600, n, Hangup ()

exten =>_+14159425751,1,Set(CALLERID(all) =“6001 <+14159425751>”
same = n, Dial(PJSIP/+1${EXTEN}@twilio0)|
same => n, Hangup ()|
same
=>n,Dial(PJSIP/+1${EXTEN}@twilio_endpoint)
same => n, Hangup ()

[from-twilio]
exten =>_+14159425751,1, Dial (PJSIP/6001)|
same => n, Hangup()

exten =>_+14159425751,1,Set(CALLERID(all) =“6001 <+14159425751>”
same = n, Dial(PJSIP/+1${EXTEN}@twilio0)|

This will call PJSIP/+1+14159425751@twilio0 thats what david want to point

This would produce the double +1, as ${EXTEN} already contains +1 if it gets here. You also have a bogus |.

This doesn’t make sense, as Hangup() will terminate the execution of the dialplan, so the following Dial will never be reached. Again there is a bogus |.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.