FIXED--AutoDialing Hangup in 1 server when customer answer

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

FIXED--AutoDialing Hangup in 1 server when customer answer

Postby omar » Thu Sep 20, 2012 8:37 pm

Hi

This is the enviroment.

1 DB
1 WWW
1 ARCHIVE SERVER
2 asterisk dialers (astA, astB)

vicibox 3.1.15
asterisk 1.4.39.2 (both servers)
vicidial 2.6b0.5
build 120831-1523

All the servers have the same version and build

Then when the auto calls go through astB, the call is correctly sent to the agent. But when the calls go through astA, the calls hangup inmediatly when the customers answer.

Every thing was fine on astA and astB, until I started to test the load balancing feature. Now i don`t know why i can't make calls through astA

These are the asterisk cli outputs.

astB EVERYTHING OK
Code: Select all
astB*CLI>
[Sep 20 21:30:17]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:30:17] Found
[Sep 20 21:30:17]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:30:17]     -- Executing [919787772928@default:1] AGI("Local/919787772928@default-51d7,2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:30:17]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:30:17]     -- Executing [919787772928@default:2] Dial("Local/919787772928@default-51d7,2", "SIP/9787772928@viciboxDos||tTor") in new stack
[Sep 20 21:30:17]     -- Called 9787772928@viciboxDos
[Sep 20 21:30:18]     -- SIP/viciboxDos-00000009 answered Local/919787772928@default-51d7,2
[Sep 20 21:30:18]        > Channel Local/919787772928@default-51d7,1 was answered.
[Sep 20 21:30:18]     -- Executing [8367@default:1] Playback("Local/919787772928@default-51d7,1", "sip-silence") in new stack
[Sep 20 21:30:18]     -- <Local/919787772928@default-51d7,1> Playing 'sip-silence' (language 'en')
[Sep 20 21:30:18] WARNING[23328]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
[Sep 20 21:30:18]     -- Executing [8367@default:2] AGI("Local/919787772928@default-51d7,1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:30:18]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:30:18]     -- Executing [8367@default:3] AGI("Local/919787772928@default-51d7,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:30:18]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:30:19]     -- Executing [h@default:1] DeadAGI("Local/919787772928@default-51d7,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----1") in new stack
[Sep 20 21:30:19]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:30:19]     -- Executing [8367@default:4] AGI("SIP/viciboxDos-00000009", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:30:19]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:30:19] ERROR[23328]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
[Sep 20 21:30:19]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:30:19]     -- Executing [8600051@default:1] MeetMe("SIP/viciboxDos-00000009", "8600051|F") in new stack
[Sep 20 21:30:20]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:30:20]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----1 completed, returning 0
[Sep 20 21:30:20]   == Spawn extension (default, 919787772928, 2) exited non-zero on 'Local/919787772928@default-51d7,2'
[Sep 20 21:30:21]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:30:21] Found
[Sep 20 21:30:21]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:30:21]     -- Executing [58600051@default:1] MeetMe("Local/58600051@default-8023,2", "8600051|Fmq") in new stack
[Sep 20 21:30:21]        > Channel Local/58600051@default-8023,1 was answered.
[Sep 20 21:30:21]     -- Executing [8309@default:1] Answer("Local/58600051@default-8023,1", "") in new stack
[Sep 20 21:30:21]     -- Executing [8309@default:2] Monitor("Local/58600051@default-8023,1", "wav|51300_9787772928_120920213020") in new stack
[Sep 20 21:30:21]     -- Executing [8309@default:3] Wait("Local/58600051@default-8023,1", "3600") in new stack
[Sep 20 21:30:23]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:30:28]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:30:28] Found
[Sep 20 21:30:28]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:30:28]   == Spawn extension (default, 8600051, 1) exited non-zero on 'SIP/viciboxDos-00000009'
[Sep 20 21:30:28]     -- Executing [h@default:1] DeadAGI("SIP/viciboxDos-00000009", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Sep 20 21:30:28]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
[Sep 20 21:30:28]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:30:28] Found
[Sep 20 21:30:28]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:30:28]   == Spawn extension (default, 58600051, 1) exited non-zero on 'Local/58600051@default-8023,2'
[Sep 20 21:30:28]     -- Executing [h@default:1] DeadAGI("Local/58600051@default-8023,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Sep 20 21:30:28]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
[Sep 20 21:30:28]   == Spawn extension (default, 8309, 3) exited non-zero on 'Local/58600051@default-8023,1'
[Sep 20 21:30:28]     -- Executing [h@default:1] DeadAGI("Local/58600051@default-8023,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Sep 20 21:30:28]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
[Sep 20 21:30:28]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:30:28] Found
[Sep 20 21:30:28]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:30:30]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:30:30]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:30:31]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:30:39]   == Refreshing DNS lookups.
astB*CLI>



astB CALL HANGUP WHEN CUSTOMER ANSWER
Code: Select all
astA*CLI>
[Sep 20 21:32:28]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:32:28] Found
[Sep 20 21:32:28]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:32:28]     -- Executing [919787774634@default:1] AGI("Local/919787774634@default-b80f,2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:32:28]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:32:28]     -- Executing [919787774634@default:2] Dial("Local/919787774634@default-b80f,2", "SIP/9787774634@vicibox||tTor") in new stack
[Sep 20 21:32:28]     -- Called 9787774634@vicibox
[Sep 20 21:32:29]     -- SIP/vicibox-00000021 answered Local/919787774634@default-b80f,2
[Sep 20 21:32:29]        > Channel Local/919787774634@default-b80f,1 was answered.
[Sep 20 21:32:29]     -- Executing [8367@default:1] Playback("Local/919787774634@default-b80f,1", "sip-silence") in new stack
[Sep 20 21:32:29]     -- <Local/919787774634@default-b80f,1> Playing 'sip-silence' (language 'en')
[Sep 20 21:32:29] WARNING[23793]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
[Sep 20 21:32:29]     -- Executing [8367@default:2] AGI("Local/919787774634@default-b80f,1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:32:29]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:32:29]     -- Executing [8367@default:3] AGI("Local/919787774634@default-b80f,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:32:29]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:32:30]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:32:30]     -- Executing [8367@default:4] AGI("Local/919787774634@default-b80f,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:32:30]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:32:30]     -- Executing [h@default:1] DeadAGI("Local/919787774634@default-b80f,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----1") in new stack
[Sep 20 21:32:31]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:32:31]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----1 completed, returning 0
[Sep 20 21:32:31]   == Spawn extension (default, 919787774634, 2) exited non-zero on 'Local/919787774634@default-b80f,2'
[Sep 20 21:32:31]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:32:31]     -- Executing [8367@default:5] Hangup("SIP/vicibox-00000021", "") in new stack
[Sep 20 21:32:31]   == Spawn extension (default, 8367, 5) exited non-zero on 'SIP/vicibox-00000021'
[Sep 20 21:32:31]     -- Executing [h@default:1] DeadAGI("SIP/vicibox-00000021", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Sep 20 21:32:31]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
[Sep 20 21:32:33]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:32:33] Found
[Sep 20 21:32:33]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:32:33]     -- Executing [919787774825@default:1] AGI("Local/919787774825@default-8897,2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:32:33]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:32:33]     -- Executing [919787774825@default:2] Dial("Local/919787774825@default-8897,2", "SIP/9787774825@vicibox||tTor") in new stack
[Sep 20 21:32:33]     -- Called 9787774825@vicibox
[Sep 20 21:32:34]     -- SIP/vicibox-00000022 answered Local/919787774825@default-8897,2
[Sep 20 21:32:34]        > Channel Local/919787774825@default-8897,1 was answered.
[Sep 20 21:32:34]     -- Executing [8367@default:1] Playback("Local/919787774825@default-8897,1", "sip-silence") in new stack
[Sep 20 21:32:34]     -- <Local/919787774825@default-8897,1> Playing 'sip-silence' (language 'en')
[Sep 20 21:32:34] WARNING[23805]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
[Sep 20 21:32:34]     -- Executing [8367@default:2] AGI("Local/919787774825@default-8897,1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:32:34]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:32:34]     -- Executing [8367@default:3] AGI("Local/919787774825@default-8897,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:32:34]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:32:35]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:32:35]     -- Executing [8367@default:4] AGI("Local/919787774825@default-8897,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:32:35]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:32:35]     -- Executing [h@default:1] DeadAGI("Local/919787774825@default-8897,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----1") in new stack
[Sep 20 21:32:36]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:32:36]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----2-----1 completed, returning 0
[Sep 20 21:32:36]   == Spawn extension (default, 919787774825, 2) exited non-zero on 'Local/919787774825@default-8897,2'
[Sep 20 21:32:36]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:32:36]     -- Executing [8367@default:5] Hangup("SIP/vicibox-00000022", "") in new stack
[Sep 20 21:32:36]   == Spawn extension (default, 8367, 5) exited non-zero on 'SIP/vicibox-00000022'
[Sep 20 21:32:36]     -- Executing [h@default:1] DeadAGI("SIP/vicibox-00000022", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Sep 20 21:32:36]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
[Sep 20 21:32:38]   == Parsing '/etc/asterisk/manager.conf': [Sep 20 21:32:38] Found
[Sep 20 21:32:38]   == Manager 'sendcron' logged on from 127.0.0.1
[Sep 20 21:32:38]     -- Executing [919787773031@default:1] AGI("Local/919787773031@default-285f,2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:32:38]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:32:38]     -- Executing [919787773031@default:2] Dial("Local/919787773031@default-285f,2", "SIP/9787773031@vicibox||tTor") in new stack
[Sep 20 21:32:38]     -- Called 9787773031@vicibox
[Sep 20 21:32:39]     -- SIP/vicibox-00000023 answered Local/919787773031@default-285f,2
[Sep 20 21:32:39]        > Channel Local/919787773031@default-285f,1 was answered.
[Sep 20 21:32:39]     -- Executing [8367@default:1] Playback("Local/919787773031@default-285f,1", "sip-silence") in new stack
[Sep 20 21:32:39]     -- <Local/919787773031@default-285f,1> Playing 'sip-silence' (language 'en')
[Sep 20 21:32:39] WARNING[23818]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
[Sep 20 21:32:39]     -- Executing [8367@default:2] AGI("Local/919787773031@default-285f,1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 20 21:32:39]     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 20 21:32:39]     -- Executing [8367@default:3] AGI("Local/919787773031@default-285f,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:32:39]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:32:41]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:32:41]     -- Executing [8367@default:4] AGI("Local/919787773031@default-285f,1", "agi-VDAD_ALL_outbound.agi|NORMAL-----LO") in new stack
[Sep 20 21:32:41]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Sep 20 21:32:41]     -- Executing [h@default:1] DeadAGI("Local/919787773031@default-285f,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----3-----2") in new stack
[Sep 20 21:32:41]   == Manager 'sendcron' logged off from 127.0.0.1
[Sep 20 21:32:42]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----3-----2 completed, returning 0
[Sep 20 21:32:42]   == Spawn extension (default, 919787773031, 2) exited non-zero on 'Local/919787773031@default-285f,2'
[Sep 20 21:32:42]     -- AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Sep 20 21:32:42]     -- Executing [8367@default:5] Hangup("SIP/vicibox-00000023", "") in new stack
[Sep 20 21:32:42]   == Spawn extension (default, 8367, 5) exited non-zero on 'SIP/vicibox-00000023'
[Sep 20 21:32:42]     -- Executing [h@default:1] DeadAGI("SIP/vicibox-00000023", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Sep 20 21:32:42]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
astA*CLI> exit


Thanks for your help
Omar
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Re: FIXED--AutoDialing Hangup in 1 server when customer answ

Postby omar » Mon Sep 24, 2012 8:24 pm

Hi

The solution is:

If you are behind NAT, it is highly recommended to configure the following parameters in sip.conf

externip
localnet


:P
Omar
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 120 guests