UK and international dialplan
Posted: Mon Nov 24, 2014 12:09 pm
Hi,
I am setting up a Vicidial server But having trouble with the dialplans.
The SIP Carrier expects the phone numbers as [CC] [Phone number] where [CC] is the 2 digit country code
We would use 9 to dial out, so in the users depending on how they dial would have the fallowing options depending on where they direct their calls:
1. - 9[CC] [9 Digit number] - generic number international format - without 00 in front
2. - 9 00 [CC] [9 Digit number] - generic number international format - with 00 in front
3. - 9 0 [9 Digit number] - Uk Landline / mobile - with 0 in front
You would normally dial a landline from your mobile for example would look like this 0123456789 for UK numbers.
Acording to the requirements I would need to set up dialplans for the above cases like this :
1. - remove 9 and dial the rest of the numbers
2. - remove 9 and 00 and dial the rest of the numbers
2. - remove 9 and 0 from the front and add 44 to the begining and dial the rest of the numbers.
I have tried all sort of dialplans, but it doesnt seems to work for me.
My settings are:
Protocol: SIP
Globals String:
Dialplan Entry:
I can see that the trunk registers to the currier:
When I try to dial out I can see the logs like this:
I don't really know where it goes wrong. Can anyone help me in this?
I am setting up a Vicidial server But having trouble with the dialplans.
The SIP Carrier expects the phone numbers as [CC] [Phone number] where [CC] is the 2 digit country code
We would use 9 to dial out, so in the users depending on how they dial would have the fallowing options depending on where they direct their calls:
1. - 9[CC] [9 Digit number] - generic number international format - without 00 in front
2. - 9 00 [CC] [9 Digit number] - generic number international format - with 00 in front
3. - 9 0 [9 Digit number] - Uk Landline / mobile - with 0 in front
You would normally dial a landline from your mobile for example would look like this 0123456789 for UK numbers.
Acording to the requirements I would need to set up dialplans for the above cases like this :
1. - remove 9 and dial the rest of the numbers
2. - remove 9 and 00 and dial the rest of the numbers
2. - remove 9 and 0 from the front and add 44 to the begining and dial the rest of the numbers.
I have tried all sort of dialplans, but it doesnt seems to work for me.
My settings are:
- Code: Select all
Carrier ID: EntaTrunk1
Carrier Name: Entanet
Registration String: egister => 44xxxxxx8:xsssss1@DNSNAME
Template ID: None
Account Entry:
[UK-Calling]
type=friend
username=44xxxxxx8
secret=xsssss1
host=DNSNAME
insecure=port,invite
context=default
fromuser=44xxxxxx8
Protocol: SIP
Globals String:
- Code: Select all
TRUNK = SIP/UK-Calling
Dialplan Entry:
- Code: Select all
exten => _90N[1-9]X.,1,AGI(agi://127......../call_log)
exten => _90N[1-9]X.,2,Dial(${TRUNK}/${EXTEN},,To)
exten => _90N[1-9]X.,3,Hangup
exten => _900N[1-9]X.,1,AGI(agi://127........./call_log)
exten => _900N[1-9]X.,2,Dial(${TRUNK}/${EXTEN},,To)
exten => _900N[1-9]X.,3,Hangup
I can see that the trunk registers to the currier:
- Code: Select all
Host dnsmgr Username Refresh State Reg.Time
DNSNAME:5060 Y 44xxxxxx8 105 Registered Mon, 24 Nov 2014 16:58:59
1 SIP registrations.
When I try to dial out I can see the logs like this:
- Code: Select all
== Using SIP RTP CoS mark 5
[Nov 24 16:59:21] -- Executing [90044123456789@default:1] AGI("SIP/cc229-0000004f", "agi://127.......:4577/call_log") in new stack
[Nov 24 16:59:21] -- <SIP/cc229-0000004f>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 24 16:59:21] -- Executing [90044123456789@default:2] Dial("SIP/cc229-0000004f", "SIP/UK-Calling/90044123456789,,To") in new stack
[Nov 24 16:59:21] == Using SIP RTP CoS mark 5
[Nov 24 16:59:21] -- Called SIP/UK-Calling/900447735556435
[Nov 24 16:59:21] == Everyone is busy/congested at this time (1:0/0/1)
[Nov 24 16:59:21] -- Executing [90044123456789@default:3] Hangup("SIP/cc229-0000004f", "") in new stack
[Nov 24 16:59:21] == Spawn extension (default, 900447735556435, 3) exited non-zero on 'SIP/cc229-0000004f'
[Nov 24 16:59:21] -- Executing [h@default:1] AGI("SIP/cc229-0000004f", "agi://127........:4577/call_log--HVcauses--PRI-----NODEBUG-----1-----CHANUNAVAIL----------") in new stack
[Nov 24 16:59:21] -- <SIP/cc229-0000004f>AGI Script agi://127........:4577/call_log--HVcauses--PRI-----NODEBUG-----1-----CHANUNAVAIL---------- completed, returning 0
I don't really know where it goes wrong. Can anyone help me in this?