Project

General

Profile

Manual dialing works fine, but Predictive outband does not working

Added by Nikola Zelenkov over 9 years ago

Hello,

I am stuck with the following problem - when using manual dial, everything works fine. As soon as I change the campaign to Predictive mode, the calls are made, the leads phones are ringing, but as soon as they answer, they hear "Busy" tone and disconnects. The agents are waiting, but nobody gets connected! It has happened randomly that some get connected, without changing anything (1 succeed in 10/15 calls)!!!


Replies (10)

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

The CLI output for the successful call:

[Sep 21 12:52:02]     -- Executing [9410123456789@default:1] AGI("Local/9410123456789@default-00000001;2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 21 12:52:02]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=INOUT))
[Sep 21 12:52:02]     -- <Local/9410123456789@default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 21 12:52:02]     -- Executing [9410123456789@default:2] Dial("Local/9410123456789@default-00000001;2", "SIP/41123456789@gad1_freevoipde,,tTor") in new stack
[Sep 21 12:52:02]   == Using SIP RTP CoS mark 5
[Sep 21 12:52:02]     -- Called SIP/41123456789@gad1_freevoipde
[Sep 21 12:52:02]     -- SIP/gad1_freevoipde-00000002 is making progress passing it to Local/9410123456789@default-00000001;2
[Sep 21 12:52:15]     -- SIP/gad1_freevoipde-00000002 answered Local/9410123456789@default-00000001;2
[Sep 21 12:52:15]        > Channel Local/9410123456789@default-00000001;1 was answered.
[Sep 21 12:52:15]     -- Executing [8368@default:1] Playback("Local/9410123456789@default-00000001;1", "sip-silence") in new stack
[Sep 21 12:52:15]     -- <Local/9410123456789@default-00000001;1> Playing 'sip-silence.gsm' (language 'en')
[Sep 21 12:52:15]     -- Executing [h@default:1] AGI("Local/9410123456789@default-00000001;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----13-----0") in new stack
[Sep 21 12:52:15]     -- Executing [8368@default:2] AGI("SIP/gad1_freevoipde-00000002", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 21 12:52:15]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=INOUT))
[Sep 21 12:52:15]     -- <SIP/gad1_freevoipde-00000002>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 21 12:52:15]     -- Executing [8368@default:3] AGI("SIP/gad1_freevoipde-00000002", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
[Sep 21 12:52:15]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 21 12:52:16]     -- <SIP/gad1_freevoipde-00000002>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 21 12:52:16]     -- Executing [178*062*245*061*8600051@default:1] Goto("SIP/gad1_freevoipde-00000002", "default,8600051,1") in new stack
[Sep 21 12:52:16]     -- Goto (default,8600051,1)
[Sep 21 12:52:16]     -- Executing [8600051@default:1] MeetMe("SIP/gad1_freevoipde-00000002", "8600051,F") in new stack
[Sep 21 12:52:16]     -- <Local/9410123456789@default-00000001;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----13-----0 completed, returning 0
[Sep 21 12:52:16]   == Spawn extension (default, 9410123456789, 2) exited non-zero on 'Local/9410123456789@default-00000001;2'
[Sep 21 12:52:18]     -- Executing [58600051@default:1] MeetMe("Local/58600051@default-00000002;2", "8600051,Fmq") in new stack
[Sep 21 12:52:18]        > Channel Local/58600051@default-00000002;1 was answered.
[Sep 21 12:52:18]     -- Executing [8309@default:1] Answer("Local/58600051@default-00000002;1", "") in new stack
[Sep 21 12:52:18]     -- Executing [8309@default:2] Monitor("Local/58600051@default-00000002;1", "wav,20140921-125216_0123456789_INOUT_agent010") in new stack
[Sep 21 12:52:18]     -- Executing [8309@default:3] Wait("Local/58600051@default-00000002;1", "3600") in new stack
[Sep 21 12:52:20]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 21 12:52:30]   == Spawn extension (default, 8600051, 1) exited non-zero on 'SIP/gad1_freevoipde-00000002'
[Sep 21 12:52:30]     -- Executing [h@default:1] AGI("SIP/gad1_freevoipde-00000002", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Sep 21 12:52:30]     -- <SIP/gad1_freevoipde-00000002>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

The failed call:

[Sep 21 12:52:37]   == Spawn extension (default, 58600051, 1) exited non-zero on 'Local/58600051@default-00000002;2'
[Sep 21 12:52:37]     -- Executing [h@default:1] AGI("Local/58600051@default-00000002;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Sep 21 12:52:37]     -- <Local/58600051@default-00000002;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
[Sep 21 12:52:37]   == Spawn extension (default, 8309, 3) exited non-zero on 'Local/58600051@default-00000002;1'
[Sep 21 12:52:37]     -- Executing [h@default:1] AGI("Local/58600051@default-00000002;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Sep 21 12:52:37]     -- <Local/58600051@default-00000002;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
[Sep 21 12:52:39]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 21 12:53:01]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 21 12:53:01]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 21 12:53:01]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 21 12:53:01]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 21 12:53:03]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 21 12:53:03]     -- Executing [9410123456789@default:1] AGI("Local/9410123456789@default-00000003;2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 21 12:53:03]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=INOUT))
[Sep 21 12:53:03]     -- <Local/9410123456789@default-00000003;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 21 12:53:03]     -- Executing [9410123456789@default:2] Dial("Local/9410123456789@default-00000003;2", "SIP/41123456789@gad1_freevoipde,,tTor") in new stack
[Sep 21 12:53:03]   == Using SIP RTP CoS mark 5
[Sep 21 12:53:03]     -- Called SIP/41123456789@gad1_freevoipde
[Sep 21 12:53:03] NOTICE[2319]: chan_sip.c:9767 process_sdp: No compatible codecs, not accepting this offer!
[Sep 21 12:53:03]     -- SIP/gad1_freevoipde-00000003 is making progress passing it to Local/9410123456789@default-00000003;2
[Sep 21 12:53:06]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 21 12:53:06]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 21 12:53:10] NOTICE[2319]: chan_sip.c:9767 process_sdp: No compatible codecs, not accepting this offer!
[Sep 21 12:53:10]     -- SIP/gad1_freevoipde-00000003 answered Local/9410123456789@default-00000003;2
[Sep 21 12:53:10]     -- Executing [h@default:1] AGI("Local/9410123456789@default-00000003;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----7-----0") in new stack
[Sep 21 12:53:10]        > Channel Local/9410123456789@default-00000003;1 was answered.
[Sep 21 12:53:10]     -- Executing [8368@default:1] Playback("Local/9410123456789@default-00000003;1", "sip-silence") in new stack
[Sep 21 12:53:10]     -- <Local/9410123456789@default-00000003;1> Playing 'sip-silence.gsm' (language 'en')
[Sep 21 12:53:10]     -- Executing [8368@default:2] AGI("Local/9410123456789@default-00000003;1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 21 12:53:10]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=INOUT))
[Sep 21 12:53:10]     -- <Local/9410123456789@default-00000003;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 21 12:53:10]     -- Executing [8368@default:3] AGI("Local/9410123456789@default-00000003;1", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
[Sep 21 12:53:10]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 21 12:53:11]     -- <Local/9410123456789@default-00000003;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----7-----0 completed, returning 0
[Sep 21 12:53:11]   == Spawn extension (default, 9410123456789, 2) exited non-zero on 'Local/9410123456789@default-00000003;2'
[Sep 21 12:53:11]     -- <Local/9410123456789@default-00000003;1>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 4
[Sep 21 12:53:11]   == Spawn extension (default, 8368, 3) exited non-zero on 'Local/9410123456789@default-00000003;1'
[Sep 21 12:53:11]     -- Executing [h@default:1] AGI("Local/9410123456789@default-00000003;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Sep 21 12:53:12]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 21 12:53:12]     -- <Local/9410123456789@default-00000003;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

carrier:

[gad1_freevoipde]
disallow=all
allow=gsm
allow=ulaw
type=friend
dtmfmode=rfc2833
qualify=yes
insecure=very
nat=yes
fromuser=1234567890
host=sip.freevoipdeal.com
username=USERNAME
secret=PASSWORD
allow=g729

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

firewall/iptables allows the ports between 10000 and 65000:

-A RH-Firewall-1-INPUT -m udp -p udp --dport 10000:65000 -j ACCEPT

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

dialplan:

exten => _9.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9.,2,Dial(SIP/${EXTEN:1:2}${EXTEN:4}@gad1_freevoipde,,tTor)
exten => _9.,3,Hangup

RE: Manual dialing works fine, but Predictive outband does not working - Added by striker 247 over 9 years ago

[Sep 21 12:53:10] NOTICE[2319]: chan_sip.c:9767 process_sdp: No compatible codecs, not accepting this offer!

did u installed g729 codec

br
striker
www.striker24x7.blospot.com

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

I just did it (and reboot), but nothing is changing, I still get the same behaviour:

core show translation
         Translation times between formats (in microseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

           g723   gsm  ulaw  alaw g726aal2 adpcm  slin lpc10  g729 speex  ilbc  g726  g722 siren7 siren14 slin16  g719 speex16 testlaw
     g723     -     -     -     -        -     -     -     -     -     -     -     -     -      -       -      -     -       -       -
      gsm     -     -  2001  2001     6000  2999  2000  6000  6999     - 15998  7000  2999      -       -   3999     -       -    2001
     ulaw     -  2001     -     1     4001  1000     1  4001  5000     - 13999  5001  1000      -       -   2000     -       -       2
     alaw     -  2001     1     -     4001  1000     1  4001  5000     - 13999  5001  1000      -       -   2000     -       -       2
 g726aal2     -  3000  1001  1001        -  1999  1000  5000  5999     - 14998  6000  1999      -       -   2999     -       -    1001
    adpcm     -  3000  1001  1001     5000     -  1000  5000  5999     - 14998  6000  1999      -       -   2999     -       -    1001
     slin     -  2000     1     1     4000   999     -  4000  4999     - 13998  5000   999      -       -   1999     -       -       1
    lpc10     -  3999  2000  2000     5999  2998  1999     -  6998     - 15997  6999  2998      -       -   3998     -       -    2000
     g729     -  5000  3001  3001     7000  3999  3000  7000     -     - 16998  8000  3999      -       -   4999     -       -    3001

RE: Manual dialing works fine, but Predictive outband does not working - Added by Demian Biscocho over 9 years ago

Post your Asterisk CLI again and let's see what's happening. Looks like you have the g729 codec already installed. You might need to check with your carrier what codec they are using.

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

Thank you for your help!
Here is the CLI:

[Sep 22 18:32:02]     -- Executing [9410123456789@default:1] AGI("Local/9410123456789@default-00000003;2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 22 18:32:02]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=INOUT))
[Sep 22 18:32:02]     -- <Local/9410123456789@default-00000003;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 22 18:32:02]     -- Executing [9410123456789@default:2] Dial("Local/9410123456789@default-00000003;2", "SIP/41123456789@freevoipdeal,,tTo") in new stack
[Sep 22 18:32:02]   == Using SIP RTP CoS mark 5
[Sep 22 18:32:02]     -- Called SIP/41123456789@freevoipdeal
[Sep 22 18:32:02] NOTICE[2650]: chan_sip.c:9767 process_sdp: No compatible codecs, not accepting this offer!
[Sep 22 18:32:02]     -- SIP/freevoipdeal-00000003 is making progress passing it to Local/9410123456789@default-00000003;2
[Sep 22 18:32:02]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 22 18:32:06]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 22 18:32:06]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 22 18:32:16] NOTICE[2650]: chan_sip.c:9767 process_sdp: No compatible codecs, not accepting this offer!
[Sep 22 18:32:16]     -- SIP/freevoipdeal-00000003 answered Local/9410123456789@default-00000003;2
[Sep 22 18:32:16]        > Channel Local/9410123456789@default-00000003;1 was answered.
[Sep 22 18:32:16]     -- Executing [h@default:1] AGI("Local/9410123456789@default-00000003;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----14-----0") in new stack
[Sep 22 18:32:16]     -- Executing [8368@default:1] Playback("Local/9410123456789@default-00000003;1", "sip-silence") in new stack
[Sep 22 18:32:16]     -- <Local/9410123456789@default-00000003;1> Playing 'sip-silence.gsm' (language 'en')
[Sep 22 18:32:16]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 22 18:32:16]     -- Executing [8368@default:2] AGI("Local/9410123456789@default-00000003;1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 22 18:32:16]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=INOUT))
[Sep 22 18:32:16]     -- <Local/9410123456789@default-00000003;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 22 18:32:16]     -- Executing [8368@default:3] AGI("Local/9410123456789@default-00000003;1", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
[Sep 22 18:32:16]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 22 18:32:17]     -- <Local/9410123456789@default-00000003;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----14-----0 completed, returning 0
[Sep 22 18:32:17]   == Spawn extension (default, 9410123456789, 2) exited non-zero on 'Local/9410123456789@default-00000003;2'
[Sep 22 18:32:17]     -- <Local/9410123456789@default-00000003;1>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 4
[Sep 22 18:32:17]   == Spawn extension (default, 8368, 3) exited non-zero on 'Local/9410123456789@default-00000003;1'
[Sep 22 18:32:17]     -- Executing [h@default:1] AGI("Local/9410123456789@default-00000003;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Sep 22 18:32:18]     -- <Local/9410123456789@default-00000003;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0

RE: Manual dialing works fine, but Predictive outband does not working - Added by Nikola Zelenkov over 9 years ago

Apparently the problem was related to the codec:

chan_sip.c:9767 process_sdp: No compatible codecs, not accepting this offer!

modifying the carrier as follow resolved the problem:

[gad1_freevoipde]
disallow=all
type=friend
dtmfmode=rfc2833
qualify=yes
insecure=very
nat=yes
fromuser=1234567890
host=sip.freevoipdeal.com
username=USERNAME
secret=PASSWORD
allow=g729

    (1-10/10)
    Go to top