Project

General

Profile

Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign.

Added by Vans V over 7 years ago

I have two issues.

First is whenever I login as an agent. I get disconnected quite often. Around every 30-60 seconds. It usually happens after submitting a disposition.

I tried commenting out rtptimeout=60 in /etc/asterisk/sip.conf and doing sip reload but no dice.

Second, whenever placing a call once logged in as an agent, it goes to 'Waiting for ring..' but nothing happens. Nothing rings, the other end don't ring and the logged in SIP phone of the agent don't ring.

To be clear dialing out from a SIP connected phone (soft or physical) works perfectly fine. I can dial 1 416 967 1111 with no problems. Dialing that same number when logged in as an agent produces nothing.

Carrier is Flowroute.

I get messages like this using asterisk -rv as soon as I place the outbound call.

[Oct 18 16:45:06] Manager 'sendcron' logged on from 127.0.0.1
[Oct 18 16:45:06] Manager 'sendcron' logged off from 127.0.0.1
[Oct 18 16:45:12] == Manager 'sendcron' logged on from 127.0.0.1
[Oct 18 16:45:12] -- Executing [8600051@default:1] MeetMe("Local/8600051@default-0000001f;2", "8600051,F") in new stack
[Oct 18 16:45:12] > Channel Local/8600051@default-0000001f;1 was answered.
[Oct 18 16:45:12] -- Executing [916477858150@default:1] AGI in new stack
[Oct 18 16:45:12] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=82933862))
[Oct 18 16:45:12] -- <Local/8600051@default-0000001f;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Oct 18 16:45:12] -- Executing [916477858150@default:2] Dial("Local/8600051@default-0000001f;1", "SIP/50@Flowroute,,tTor") in new stack
[Oct 18 16:45:12] Using SIP RTP CoS mark 5
[Oct 18 16:45:12] -- Called SIP/50@Flowroute
[Oct 18 16:45:12] Manager 'sendcron' logged off from 127.0.0.1
[Oct 18 16:45:12] WARNING6491: chan_sip.c:21126 handle_response_invite: Received response: "Forbidden" from '"M0181645120000000608" <sip:>;tag=as73a94212'
[Oct 18 16:45:12] Everyone is busy/congested at this time (1:0/0/1)
[Oct 18 16:45:12] -- Executing [916477858150@default:3] Hangup("Local/8600051@default-0000001f;1", "") in new stack
[Oct 18 16:45:12] Spawn extension (default, 916477858150, 3) exited non-zero on 'Local/8600051@default-0000001f;1'
[Oct 18 16:45:12] -- Executing [h@default:1] AGI in new stack
[Oct 18 16:45:12] -- <Local/8600051@default-0000001f;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----21-----CHANUNAVAIL---------- completed, returning 0
[Oct 18 16:45:12] Parsing '/etc/asterisk/meetme.conf': [Oct 18 16:45:12] Found
[Oct 18 16:45:12] Parsing '/etc/asterisk/meetme-vicidial.conf': [Oct 18 16:45:12] Found
[Oct 18 16:45:12] -- Created MeetMe conference 1023 for conference '8600051'
[Oct 18 16:45:12] WARNING18182: file.c:767 ast_readaudio_callback: Failed to write frame
[Oct 18 16:45:12] -- <Local/8600051@default-0000001f;2> Playing 'conf-onlyperson.gsm' (language 'en')
[Oct 18 16:45:12] -- Hungup 'DAHDI/pseudo-500548825'
[Oct 18 16:45:12] == Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-0000001f;2'
[Oct 18 16:45:12] -- Executing [h@default:1] AGI in new stack
[Oct 18 16:45:12] -- <Local/8600051@default-0000001f;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
go*CLI>

Config for carrier:
[Flowroute]
type=friend
secret=
username=
host=sip.flowroute.com
dtmfmode=rfc2833
context=trunkinbound
canreinvite=no
allow=ulaw
insecure=port,invite
fromdomain=sip.flowroute.com

Dialplan for carrier:

exten => _9.,1,AGI
exten => _9.,2,Dial(SIP/${EXTEN:10}@Flowroute,,tTor)
exten => _9.,3,Hangup

exten => _1NXXNXXXXXX,1,Dial(SIP/${TECHPREFIX}${EXTEN}@Flowroute)

So this is what I am doing. I have a user with username 6000 and passwd, I also have a physical phone with phone login 6000 and same password. I login the agent 6000, and I get a call to my physical phone "You are the only one in this conference", I hang up and try to manually dial out. Nothing. I get disconnected after 30 more seconds.


Replies (8)

RE: Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign. - Added by striker 247 over 7 years ago

try this dialplan
exten => _9.,1,AGI
exten => _9.,2,Dial(SIP/${EXTEN:1}@Flowroute,,tTor)
exten => _9.,3,Hangup

regards
striker
www.striker24x7.blogspot.com

RE: Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign. - Added by Vans V over 7 years ago

It part of the problem is the dialplan, the key error message was:

WARNING6491: chan_sip.c:21126 handle_response_invite: Received response: "Forbidden" from '"M0181645120000000608" <sip:>;tag=as73a94212'

My SIP provider was blocking Asterisk for some reason when it calls from the Agent.

The solution was to whitelist the IP of the phone server in the carriers website, and update a Tech Prefix the carrier wanted to pass. My dialplan now looks like:

exten => _9.,1,AGI
exten => _9.,2,Dial(SIP/${TECHPREFIX}${EXTEN}@Flowroute,,tTor)
exten => _9.,3,Hangup

exten => _1NXXNXXXXXX,1,Dial(SIP/${TECHPREFIX}${EXTEN}@Flowroute)

It still does not work thought. So onto the next problem. The Forbidden error disappeared though.

Going to try to use the exact version of XLite softphone required.

RE: Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign. - Added by Vans V over 7 years ago

So using the version of X-Lite as in the guide does not work. X-Lite refuses to start. I ended up using the latest X-Lite version.

This is what happens now:

I login as agent, Get the ring on the X-Lite soft phone. Answer. "You are the only person in this conference"

Now if I hang up. I get disconnected from the Agent Web Login and need to reconnect. If I stay on the line its okay.

Now I go to manual dial, enter a number. It now shows that the call is fully connected and LIVE.

But I have no sound on my end. I don't hear anything. Nothing rings. Whether I am in the conference or not, nothing.

[Oct 19 13:10:34] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:11:01] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:11:01] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:11:01] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:11:02] Manager 'sendcron' logged off from 127.0.0.1
go*CLI>
[Oct 19 13:11:06] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:11:06] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:11:08] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:11:08] -- Executing [8600052@default:1] MeetMe("Local/8600052@default-0000002e;2", "8600052,F") in new stack
[Oct 19 13:11:08] > Channel Local/8600052@default-0000002e;1 was answered.
[Oct 19 13:11:08] -- Executing [914169671111@default:1] AGI in new stack
[Oct 19 13:11:08] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=82933862))
[Oct 19 13:11:08] -- <Local/8600052@default-0000002e;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Oct 19 13:11:08] -- Executing [914169671111@default:2] Dial("Local/8600052@default-0000002e;1", "SIP/94152427*914169671111@Flowroute,,tTor") in new stack
[Oct 19 13:11:08] Using SIP RTP CoS mark 5
[Oct 19 13:11:08] -- Called SIP/94152427*914169671111@Flowroute
[Oct 19 13:11:08] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:11:13] -- SIP/Flowroute-000000d9 is ringing
[Oct 19 13:11:34] Spawn extension (default, 8600052, 1) exited non-zero on 'SIP/6001-000000d8'
[Oct 19 13:11:34] -- Executing [h@default:1] AGI("SIP/6001-000000d8", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Oct 19 13:11:34] -- &lt;SIP/6001-000000d8&gt;AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
[Oct 19 13:11:40] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:11:40] -- Hungup 'DAHDI/pseudo-1949547371'
[Oct 19 13:11:40] Spawn extension (default, 8600052, 1) exited non-zero on 'Local/8600052@default-0000002e;2'
[Oct 19 13:11:40] -- Executing [h@default:1] AGI("Local/8600052@default-0000002e;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Oct 19 13:11:40] -- &lt;Local/8600052@default-0000002e;2&gt;AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
[Oct 19 13:11:40] Spawn extension (default, 914169671111, 2) exited non-zero on 'Local/8600052@default-0000002e;1'
[Oct 19 13:11:40] -- Executing [h@default:1] AGI in new stack
[Oct 19 13:11:40] -- <Local/8600052@default-0000002e;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL---------- completed, returning 0
[Oct 19 13:11:40] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:11:41] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:11:41] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:11:52] > ast_get_srv: SRV lookup for '_sip._udp.sip.flowroute.com' mapped to host sip-nv1.flowroute.com, port 5060
[Oct 19 13:11:52] > ast_get_srv: SRV lookup for '_sip._udp.sip.flowroute.com' mapped to host sip-nv1.flowroute.com, port 5060
[Oct 19 13:11:54] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:11:54] -- Executing [8600052@default:1] MeetMe("Local/8600052@default-0000002f;2", "8600052,F") in new stack
[Oct 19 13:11:54] > Channel Local/8600052@default-0000002f;1 was answered.
[Oct 19 13:11:54] -- Executing [914169671111@default:1] AGI in new stack
[Oct 19 13:11:54] == Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:11:54] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=82933862))
[Oct 19 13:11:54] -- <Local/8600052@default-0000002f;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Oct 19 13:11:54] -- Executing [914169671111@default:2] Dial("Local/8600052@default-0000002f;1", "SIP/94152427*914169671111@Flowroute,,tTor") in new stack
[Oct 19 13:11:54] Using SIP RTP CoS mark 5
[Oct 19 13:11:54] -- Called SIP/94152427*914169671111@Flowroute
[Oct 19 13:11:54] Parsing '/etc/asterisk/meetme.conf': [Oct 19 13:11:54] Found
[Oct 19 13:11:54] Parsing '/etc/asterisk/meetme-vicidial.conf': [Oct 19 13:11:54] Found
[Oct 19 13:11:54] -- Created MeetMe conference 1023 for conference '8600052'
[Oct 19 13:11:54] -- &lt;Local/8600052@default-0000002f;2&gt; Playing 'conf-onlyperson.gsm' (language 'en')
[Oct 19 13:12:01] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:12:01] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:12:01] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:12:02] Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:12:02] -- SIP/Flowroute-000000da is ringing
[Oct 19 13:12:06] Manager 'sendcron' logged on from 127.0.0.1
[Oct 19 13:12:06] == Manager 'sendcron' logged off from 127.0.0.1
[Oct 19 13:12:07] -- SIP/Flowroute-000000da is making progress passing it to Local/8600052@default-0000002f;1

RE: Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign. - Added by Vans V over 7 years ago

So apparently you need to stay in conference. I stay in conference. Call gets connected in the HTML Agent Panel and goes LIVE. But I don't hear anything on the conference joined SIP softphone.

RE: Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign. - Added by Vans V over 7 years ago

I fixed my issues by tweaking a bunch of settings related to SIP phone config and carrier config.

Really annoying overall as no errors or warning where being generated to indicate a problem.

RE: Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign. - Added by George Muddu over 5 years ago

Vans V wrote:

I fixed my issues by tweaking a bunch of settings related to SIP phone config and carrier config.

Really annoying overall as no errors or warning where being generated to indicate a problem.

Am face with a similar problem I have Googled for a number of days I cannot find the solution kindly help me how you managed to get around this error

RE: Constant Relogin for agent. No outbound calls working when logged in as Agent with Campaign. - Added by Wittie Manansala over 5 years ago

Hi,

Please post the following:

1. Complete Carrier Settings
2. Asterisk CLI Log

Thanks

    (1-8/8)
    Go to top