- Code: Select all
exten => _70X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _70X.,2,Dial(SIP/telco/${EXTEN:1},,tTor)
exten => _70X.,3,Hangup
and upon lead loading , I edit the spreadsheet to remove the 61 that is already included in phonenumber in the file (I did this because I don't know that much regarding constructing dial patterns , I just did it for a quick fix so they can do calls ). In campaign Dial prefix , i set it as 70 and it was working.
My sysad told me that it's better not to mess with the files being sent so if any problems occur in that file , we wont be liable, so he assisted me to make a new dial pattern with the specifics we need.
[telco1]
- Code: Select all
exten => _61XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _61XXXXXXXXX,2,Dial(SIP/telco1/0${EXTEN:2},,tTor)
exten => _61XXXXXXXXX,3,Hangup
exten => _0XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0XXXXXXXXX,2,Dial(SIP/telco1/${EXTEN},,tTor)
exten => _0XXXXXXXXX,3,Hangup
now this dial pattern is working perfectly for dialing manually without any prefix, but my question is to test this to be on the dial prefix for the campaign. Earlier I created this dial plan
[telco2]
- Code: Select all
exten => _761XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _761XXXXXXXXX,2,Dial(SIP/telcoblue/0${EXTEN:3},,tTor)
exten => _761XXXXXXXXX,3,Hangup
In my understanding with the one I created , 761 - would be drop and then 0 prepend to the number. so when a call comes in as 61XXXXXXXXX it will be pushed out as 0XXXXXXXXX.
I loaded the leads normally including 61 in the phone number.
##### Now the real Question #####
In the campaign Dial Prefix , I set "761" for the campaign to use [telco2] that i created,but it was not being recognised by asterisk , now I tried to set Dial Prefix to "7", and calls started to be push through successfully, But when I monitor CLI , the campaign is using [telco1] ,
My question is what to properly set to Dial prefix for it to use [telco2] and what is the problem with my [telco2] dial pattern. Also why the campaign is using [telco1] if I specified in dial prefix to use [telco2].
It's ok if telco1 is being used because it's the same account as voip2 the only difference was the dial pattern but i jsut want to know my wrong and how to fix it.
Thanks