Project

General

Profile

Need some help to create a carrier..

Added by George Michalopoulos almost 6 years ago

hello all,

I need some help to create a carrier, which will transfer all outbound calls to an old Elastix pbx server.
I create the iax2 trunk, it connects, but it doesn't forwards the calls..
These are my settings on GoAutodial side:

Carrier Name: To the PBX 
Carrier Description: Carrier to the PBX
Registration String: register => CC:[email protected]:4569/CC

Account Entry
[PBX]
disallow=all
allow=ulaw
type=friend
dtmfmode=rfc2833
context=default
qualify=yes
host=10.10.100.120
username=CC
secret=password

Protocol: Iax2
Global String: <empty>
Dialplan Entry:
exten => _9.,1,AGI
exten => _9.,2,Dial(IAX2/CC:password@PBX/${EXTEN:4},,tTo)
exten => _9.,3,Hangup

i do now want to do LCR, nothing.. every call must go to 10.10.100.120

This is what i see at goautodial's cli:

cc*CLI> iax2 show peers
Name/Username    Host                                           Mask                                      Port           Status      Description                     
ASTloop          (null)                                   (D)  (null)                                    (null)         UNKNOWN                                     
ASTblind         (null)                                   (D)  (null)                                    (null)         UNKNOWN                                     
ASTplay          (null)                                   (D)  (null)                                    (null)         UNKNOWN                                     
PBX/CC           10.10.100.120                            (S)  255.255.255.255                           4569           OK (3 ms)                                   
4 iax2 peers [1 online, 3 offline, 0 unmonitored]

cc*CLI> iax2 show registry 
Host                                           dnsmgr  Username    Perceived                                      Refresh  State
10.10.100.120:4569                             N       CC          10.10.100.120:4569                                  60  Registered
127.0.0.1:42569                                N       ASTplay     127.0.0.1:42569                                     60  Timeout
127.0.0.1:41569                                N       ASTblind    127.0.0.1:41569                                     60  Timeout
127.0.0.1:40569                                N       ASTloop     127.0.0.1:40569                                     60  Timeout
4 IAX2 registrations.

and this what i see at PBX's cli...

PBX*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status      Description                     
CC/CC            10.10.100.106   (D)  255.255.255.255  4569 (T)      OK (1 ms)                                   
9001             (null)          (D)  255.255.255.255  0             UNKNOWN                                     
2 iax2 peers [1 online, 1 offline, 0 unmonitored]

PBX*CLI> iax2 show registry 
Host                  dnsmgr  Username    Perceived             Refresh  State
0 IAX2 registrations.

any help would be appreciated.. thank you very much in advance,
and keep up the good work !


Replies (9)

RE: Need some help to create a carrier.. - Added by Guilherme Bizzani almost 6 years ago

This setting seems ok, now you have to verify the EXTEN that you are calling, notice that the carrier receives _9. and then forward to the Peer removing the first 4 characters Dial(IAX2/CC:password@PBX/${EXTEN:4},,tTo)
You need to let the Asterisk's console opened in your GoAutoDial and in your Elastix to see what is happening with the call.
In my case I had an issue with the "counrty code" that GoAutoDial inserts in front of every number you call, so removing it I could get my carrier working.

RE: Need some help to create a carrier.. - Added by George Michalopoulos almost 6 years ago

the call does not reach the PBX...
this is the log from goautodial's cli..

this is written when an agent logins to dialer.. i suppose 6457644565 is the number of the agent dialer..

   -- Called 99996457644565@default
    -- Executing [99996457644565@default:1] AGI("Local/99996457644565@default-00000009;2", "") in new stack
[Jan 11 13:05:58] WARNING[16818][C-0000000b]: res_agi.c:4518 agi_exec_full: AGI requires an argument (script)
  == Spawn extension (default, 99996457644565, 1) exited non-zero on 'Local/99996457644565@default-00000009;2'
[Jan 11 13:05:58] WARNING[16818][C-0000000b]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel 
    -- Executing [h@default:1] AGI("Local/99996457644565@default-00000009;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
    -- <Local/99996457644565@default-00000009;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------) completed, returning 0
  == Manager 'sendcron' logged off from 127.0.0.1
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1

Now i try to call 2311114800..

cc*CLI> 
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Called 8600051@default
    -- Executing [8600051@default:1] Konference("Local/8600051@default-0000000a;2", "8600051,R") in new stack
    -- Local/8600051@default-0000000a;1 answered
    -- Executing [999Michalopou2311114800@default:1] AGI("Local/8600051@default-0000000a;1", "") in new stack
[Jan 11 13:06:37] WARNING[16912][C-0000000d]: res_agi.c:4518 agi_exec_full: AGI requires an argument (script)
  == Spawn extension (default, 999Michalopou2311114800, 1) exited non-zero on 'Local/8600051@default-0000000a;1'
[Jan 11 13:06:37] WARNING[16912][C-0000000d]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel 
    -- Executing [h@default:1] AGI("Local/8600051@default-0000000a;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
  == Manager 'sendcron' logged off from 127.0.0.1
    -- <Local/8600051@default-0000000a;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------) completed, returning 0
[Jan 11 13:06:37] ERROR[16913][C-0000000c]: member.c:389 member_exec: unable to answer call
  == Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-0000000a;2'
[Jan 11 13:06:37] WARNING[16913][C-0000000c]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel 
    -- Executing [h@default:1] AGI("Local/8600051@default-0000000a;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
    -- <Local/8600051@default-0000000a;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------) completed, returning 0
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Called 58600051@default
    -- Executing [58600051@default:1] Konference("Local/58600051@default-0000000b;2", "8600051,qLR") in new stack
    -- Local/58600051@default-0000000b;1 answered
    -- Executing [8309@default:1] Answer("Local/58600051@default-0000000b;1", "") in new stack
    -- Executing [8309@default:2] Monitor("Local/58600051@default-0000000b;1", "wav,20190111-110631_2311114800_16446265_1001") in new stack
  == Manager 'sendcron' logged off from 127.0.0.1
    -- Executing [8309@default:3] Wait("Local/58600051@default-0000000b;1", "3600") in new stack
cc*CLI> 

and this happens when i hangup..

cc*CLI> 
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Manager 'sendcron' from 127.0.0.1, hanging up channel: Local/58600051@default-0000000b;2
[Jan 11 13:06:45] WARNING[16920][C-0000000e]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel 
    -- Executing [h@default:1] AGI("Local/58600051@default-0000000b;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
  == Manager 'sendcron' logged off from 127.0.0.1
    -- <Local/58600051@default-0000000b;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------) completed, returning 0
  == Spawn extension (default, 8309, 3) exited non-zero on 'Local/58600051@default-0000000b;1'
[Jan 11 13:06:45] WARNING[16919][C-0000000f]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel 
    -- Executing [h@default:1] AGI("Local/58600051@default-0000000b;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
    -- <Local/58600051@default-0000000b;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------) completed, returning 0
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
cc*CLI> 

RE: Need some help to create a carrier.. - Added by Guilherme Bizzani almost 6 years ago

I guess that GoAutoDial may be routing your call into another extension inside the "default" context, try changing the Dial Prefix from your carrier from "9" to something more specific, so asterisk does not conflict with another extension.
Try changing your Carrier setting
"Dialplan Entry:"
exten => _9797.,1,AGI
exten => _9797.,2,Dial(IAX2/CC:password@PBX/${EXTEN:4},,tTo)
exten => _9797.,3,Hangup

Also remember to set to use this carrier in your campaign and note that you will receive all the extension that is showing in the console, like "Michalopou2311114800", so in your PBX you will have to deal with it.

RE: Need some help to create a carrier.. - Added by George Michalopoulos almost 6 years ago

Hello,
usually, dialed numbers are like 6XXXXXXXXX or 2XXXXXXXXX

my dialplan now is:

exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(SIP/${EXTEN:10}@ToAsteriskSip,,tTo)
exten => _X.,3,Hangup

should i change it to

exten => _6XXXXXXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _6XXXXXXXXX.,2,Dial(SIP/${EXTEN:10}@ToAsteriskSip,,tTo)
exten => _6XXXXXXXXX.,3,Hangup
exten => _2XXXXXXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _2XXXXXXXXX.,2,Dial(SIP/${EXTEN:10}@ToAsteriskSip,,tTo)
exten => _2XXXXXXXXX.,3,Hangup

RE: Need some help to create a carrier.. - Added by Guilherme Bizzani almost 6 years ago

George Michalopoulos wrote:

Hello,
usually, dialed numbers are like 6XXXXXXXXX or 2XXXXXXXXX

I'm not sure how the Carrier Dial Prefix works, but I think you can't set two different extensions to the same carrier.
Remember that this dial prefix is not something that the agents have to type when calling, it's something done automatically by the server. The server detects the carrier that is used for the campaign and concatenates it with the number that the agent called.
This is why I suggest to put some specific value as the dial prefix.

RE: Need some help to create a carrier.. - Added by George Michalopoulos almost 6 years ago

well, i managed finally to send all calls starting with 6 or 2 to my asterisk..

i used this dialplan:

exten => _6XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _6XXXXXXXXX,2,Dial(SIP/${EXTEN:10}@ToAsteriskSip,,tTo)
exten => _6XXXXXXXXX,3,Hangup
exten => _2XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _2XXXXXXXXX,2,Dial(SIP/${EXTEN:10}@ToAsteriskSip,,tTo)
exten => _2XXXXXXXXX,3,Hangup

now i have to deal with asterisk :)

RE: Need some help to create a carrier.. - Added by George Michalopoulos almost 6 years ago

hello all,

i managed to create the iax2 carrier and connect it to an asterisk PBX..
when i create a phone in goautodial and use a softphone, i can connect and call...
but using webrtc client it doesnt call..

i'm trying to call for example 6944420303 and this is displayed in cli:

    -- Called 58600051@default
    -- Executing [58600051@default:1] Konference("Local/58600051@default-00000005;2", "8600051,qLR") in new stack
    -- Local/58600051@default-00000005;1 answered
    -- Executing [8309@default:1] Answer("Local/58600051@default-00000005;1", "") in new stack
    -- Executing [8309@default:2] Monitor("Local/58600051@default-00000005;1", "wav,20190114-103836_6944420303_16446265_1001") in new stack
    -- Executing [8309@default:3] Wait("Local/58600051@default-00000005;1", "3600") in new stack

after a few minutes, client times out and when i press hangup this is the result:

    -- Manager 'sendcron' from 127.0.0.1, hanging up channel: Local/58600051@default-00000005;2
[Jan 14 12:39:35] WARNING[12500][C-0000000b]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
    -- Executing [h@default:1] AGI("Local/58600051@default-00000005;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
  == Manager 'sendcron' logged off from 127.0.0.1
    -- <Local/58600051@default-00000005;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------) completed, returning 0
  == Spawn extension (default, 8309, 3) exited non-zero on 'Local/58600051@default-00000005;1'
[Jan 14 12:39:35] WARNING[12499][C-0000000c]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
    -- Executing [h@default:1] AGI("Local/58600051@default-00000005;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
    -- <Local/58600051@default-00000005;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------) completed, returning 0

RE: Need some help to create a carrier.. - Added by George Michalopoulos almost 6 years ago

this is the cli result when i call using a softphone connected to goautodial's asterisk...

  == Using SIP RTP CoS mark 5
       > 0x7f11840166f0 -- Strict RTP learning after remote address set to: 10.10.100.11:49158
    -- Executing [6944420303@default:1] AGI("SIP/100-00000002", "agi://127.0.0.1:4577/call_log") in new stack
    -- <SIP/100-00000002>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [6944420303@default:2] Dial("SIP/100-00000002", "IAX2/asteriskiax/6944420303,,Ttor") in new stack
    -- Called IAX2/asteriskiax/6944420303
    -- Call accepted by 10.10.100.120:4569 (format ulaw)
    -- Format for call is (ulaw)
    -- IAX2/asteriskiax-29478 is ringing
    -- IAX2/asteriskiax-29478 is making progress passing it to SIP/100-00000002
    -- Hungup 'IAX2/asteriskiax-29478'
  == Spawn extension (default, 6944420303, 2) exited non-zero on 'SIP/100-00000002'
[Jan 14 12:42:39] WARNING[13381][C-0000000d]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
    -- Executing [h@default:1] AGI("SIP/100-00000002", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL---------------)") in new stack
    -- <SIP/100-00000002>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL---------------) completed, returning 0

RE: Need some help to create a carrier.. - Added by Wittie Manansala almost 6 years ago

Hi,

Let use this forum https://goautodial.org/boards/3/topics/15046 to resolve your issue.

thank you

    (1-9/9)
    Go to top