Page 1 of 1

carrier setup

PostPosted: Mon Apr 04, 2011 4:29 am
by xordox
Hi,
I can make calls on clean asterisk 1.6 with freePBX, with this settings:

Outbound Caller ID: <722155560>

Peer details:
host=80.179.100.100
type=friend
dtmfmode=rfc2833
context=from-pstn
nat=yes
canreinvite=no
insecure=very
disallow=all
allow=ulaw&alaw

User details:
context=from-pstn

Dial rules:
XXXXXXXXXX

Asterisk sip setting:
external ip: 84.94.120.200
local: 192.168.1.0/255.255.255.0

Please can you help me, I'm stack on add new carrier in Goautodial 2.0:
I added:
[012]
host=80.179.100.100
type=friend
dtmfmode=rfc2833
context=from-pstn
nat=yes
canreinvite=no
insecure=very
disallow=all
allow=ulaw&alaw

extension:
exten => _XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XXXXXXXXXX,2,Dial(${SIP012}/${EXTEN:1},,tTor)
exten => _XXXXXXXXXX,3,Hangup

also added externip and local network in sip.conf -> general.
but still cant make calls

PostPosted: Mon Apr 04, 2011 9:30 am
by williamconley
modify context so inbound calls will also work wrote:[012]
host=80.179.100.100
type=friend
dtmfmode=rfc2833
context=trunkinbound
nat=yes
canreinvite=no
insecure=very
disallow=all
allow=ulaw&alaw


add a globals string wrote:SIP012=SIP/012


change extension on all three lines wrote:exten => _91XXXXXXXXXX


and add "9" to the dial prefix for the campaign.

if your carrier requires 10 digit dialing, change "EXTEN:1" to "EXTEN:2" or remove the "1" from "91XXXXXXXXXX".

:1 removes the first digit of the dial string (the 9, which is only used to bring the call to this dial plan so we can have multiple dialplans/carriers)

:2 would remove TWO digits

PostPosted: Mon Apr 04, 2011 11:38 am
by xordox
Thank you!
Now I can make outbounds calls, but i cannot get inbound calls.
I think I must write down the phone numbers from sip provider somewhere.
now trying to find out - where :)
got error when make inbound call:
Notice[XXXXX]: chan_sip.c:15147 handle_request_invite: Call from'' to extension '72215355' rejected because extension not found

VERSION: 2.2.1-237
BUILD: 100510-2015

PostPosted: Mon Apr 04, 2011 12:23 pm
by williamconley
context=trunkinbound
?

PostPosted: Mon Apr 04, 2011 12:46 pm
by xordox
Yep, I changed it to context=trunkinbound , but still get this error:
Notice[XXXXX]: chan_sip.c:15147 handle_request_invite: Call from'' to extension '72215355' rejected because extension not found

PostPosted: Mon Apr 04, 2011 12:54 pm
by williamconley
check sip debug and find out what context it is searching (if it is not trunkinbound, then the call inbound did not authenticate to the carrier, and you need to get it to authenticate to the carrier so it will get sent to trunkinbound where it belongs)

for instance: is the IP address sending the call the same as in the "host=" entry for that carrier?

PostPosted: Mon Apr 04, 2011 1:31 pm
by xordox
Thanks for your help williamconley!
I changed context to trunkinbound in sip.conf, now when I try to call, I havent errors, but call do not reach agent.
in cli I have:
Executing [722153555@trunkinbound:1] AGI("SIP/5060-0000000a", "agi-DID_route.agi") in new stack

Launched AGI script

AGI Script agi-DID_route.agi completed, returning 0

Executing [99909*1*@default:1] Answer(sip/5060-0000000a","") in new stack

Executing [99909*1*@default:2] AGI("SIP/5060-0000000a","agi-VDAD_ALL_inbound.agi") in new stack

Playing 'sip-silence'
Playing 'sip-silence'

can you tell me please how I can route the call to agent softphone?

2. I'm sending call from GSM network.

PostPosted: Mon Apr 04, 2011 2:15 pm
by williamconley
which is why the sip.conf value was set to default.

so find out which context it is resolving to inbound and/or find the ip it is coming from and put it in as a host= line for the context you WANT it to resolve to (yes, you may have more than one host= line).

hey (CANADA and US working at same dialer?)

PostPosted: Sat Jun 04, 2011 1:24 am
by adilcapricon
Hope you are fine , I have one issue in my goautodial, I want to share you. I have Goautodial 2.0 and I have 2 campaigns in night shift (Canada and US) both dial plans (Carriers ) are different and I have only one dialer, i want to ask you .if i want both campaign works in one dialer at a time .is it works ? and both different dial plans (Carriers) work at same time ...If it is ...So how?

Kindly reply me ....i m waiting

Regard
M Adil

PostPosted: Thu Jun 09, 2011 12:25 pm
by williamconley
be sure each carrier has a different dial prefix

hey williamconley

PostPosted: Fri Jun 10, 2011 1:55 am
by adilcapricon
yes williamconley both has different dial prefix
.hey Guyz I find out the solution for Two countries(USA, CANADA) work in same dialer at same time . i Create one default dialplan for both carrier and its works.. :) I tested YAhooooooo