Configuration for outbound using voipprocom

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Configuration for outbound using voipprocom

Postby totres » Wed Jun 24, 2015 6:29 am

Hello to all!
I'm having an issue calling in outbound:
Code: Select all
call from '028888' to extension '0039347XXXXXXX' rejected because extension not found in context 'default'
.

These are my carrier entries

Registration string
Code: Select all
register => user:pass@myprovider:port/user

Account entry
Code: Select all
[voip]
disallow=all
allow=g729
allow=alaw
allow=gsm
allow=ulaw
type=friend
dtmfmode=rfc2833
context=trunkinbound
qualify=yes
insecure=very
nat=yes
host=myprovider
username=user
secret=pass
fromuser=user


Dialplan entry
Code: Select all
exten => _39XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _39XX.,2,Dial(SIP/voip/${EXTEN:2},,tTo)
exten => _39XX.,3,Hangup



Vicidial: VERSION: 2.12-491a BUILD: 150610-0934

Am I missing something?
totres
 
Posts: 3
Joined: Wed Jun 24, 2015 6:00 am

Re: Configuration for outbound using voipprocom

Postby williamconley » Wed Jun 24, 2015 7:14 pm

Yep, you're missing the Installation Method with Version. 8-)

Additionally, you're fairly new at Asterisk, so here's your problem today:

0039347XXXXXXX

vs
exten => _39XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _39XX.,2,Dial(SIP/voip/${EXTEN:2},,tTo)
exten => _39XX.,3,Hangup


Your extension starts with "003". But your carrier pattern entry ("_" at the beginning means "pattern", so X can equal any number and "." can equal an unlimited number of additional numbers) only allows "39XX". Or "39 plus any two digits ... plus any number of More Digits. Note that the carrier entry does not start with 00 nor does it start with "XX" which would be a pattern match for "00" and also work. So the restriction you've placed on your dialplan is: Must begin with 39.

Thus the system did precisely what it was told to do: Allow numbers starting with 39 and NOT numbers starting with 00. 8-)

Happy hunting! 8-)

PS: Good details in the post except the missing installer info ...
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Configuration for outbound using voipprocom

Postby totres » Thu Jun 25, 2015 2:23 am

Thanks for Your reply.

Installation method ViciBox 6.03 - preload - Express install.

I changed the pattern to

Code: Select all
exten => _0039.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0039.,2,Dial(SIP/voip/${EXTEN:4},,tTo)
exten => _0039.,3,Hangup


but the result is always rejected, dialing a number like "00393471111111"
totres
 
Posts: 3
Joined: Wed Jun 24, 2015 6:00 am

Re: Configuration for outbound using voipprocom

Postby totres » Thu Jun 25, 2015 2:45 am

Solved :D

I just changed the carrier id to match the account settings name, in my case
Code: Select all
[voip]
.
totres
 
Posts: 3
Joined: Wed Jun 24, 2015 6:00 am

Re: Configuration for outbound using voipprocom

Postby williamconley » Thu Jun 25, 2015 9:14 pm

totres wrote:Solved :D

I just changed the carrier id to match the account settings name, in my case
Code: Select all
[voip]
.

In other words, you changed the dialplan entry, and then got a different rejection reason. Then researched the new rejection reason and "figured it out". Good Job. (Next time, post the New Rejection Reason ... if not for yourself, for the next guy! 8-) Everyone who comes here can use that extra little bit of detail!)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 86 guests