[asterisk-r2] Receiving calls but cant place them with Unicall

Moises Silva moises.silva at gmail.com
Thu Mar 26 12:51:31 CDT 2009


Enable debug output for chan_unicall in unicall.conf

loglevel=255

Then in Asterisk /etc/asterisk/logger.conf enable all debugging messages

Then post the relevant failing call log.

Moy

On Thu, Mar 26, 2009 at 1:48 PM,  <esitt23 at gmail.com> wrote:
> Hi every one may be some body can help with my problem.
> I had an Elastix installed with Unicall,to use there an E1 from Telmex (R2),
> im using in my PCI Slot # 1 a WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0",
> the unicall is working ok with incoming calls, the think is i cant place
> calls from there, I hava add a custom trunk in my Elastix Web
> Interface UNICALL/g0/$OUTNUM$ (as i read on the Elastix Forums)If any one
> note my error, please let me know, i am attaching here the asterisk debug on
> incoming and outgoing calls
>
> OUTGOING CALLS (NOT WORKING)
> Mar 26 13:15:02] WARNING[3132]: rtp.c:1997 ast_rtp_settos: Unable to set TOS
> to 184
>     -- Executing [252553957468 at from-internal:1] Macro("SIP/503-089fcc48",
> "user-callerid|SKIPTTL|") in new stack
>     -- Executing [s at macro-user-callerid:1] NoOp("SIP/503-089fcc48",
> "user-callerid: device 503") in new stack
>     -- Executing [s at macro-user-callerid:2] Set("SIP/503-089fcc48",
> "AMPUSER=503") in new stack
>     -- Executing [s at macro-user-callerid:3] GotoIf("SIP/503-089fcc48",
> "0?report") in new stack
>     -- Executing [s at macro-user-callerid:4] ExecIf("SIP/503-089fcc48",
> "1|Set|REALCALLERIDNUM=503") in new stack
>     -- Executing [s at macro-user-callerid:5] NoOp("SIP/503-089fcc48",
> "REALCALLERIDNUM is 503") in new stack
>     -- Executing [s at macro-user-callerid:6] Set("SIP/503-089fcc48",
> "AMPUSER=503") in new stack
>     -- Executing [s at macro-user-callerid:7] Set("SIP/503-089fcc48",
> "AMPUSERCIDNAME=Jack Missrie") in new stack
>     -- Executing [s at macro-user-callerid:8] GotoIf("SIP/503-089fcc48",
> "0?report") in new stack
>     -- Executing [s at macro-user-callerid:9] Set("SIP/503-089fcc48",
> "AMPUSERCID=503") in new stack
>     -- Executing [s at macro-user-callerid:10] Set("SIP/503-089fcc48",
> "CALLERID(all)="Jack Missrie" <503>") in new stack
>     -- Executing [s at macro-user-callerid:11] Set("SIP/503-089fcc48",
> "REALCALLERIDNUM=503") in new stack
>     -- Executing [s at macro-user-callerid:12] ExecIf("SIP/503-089fcc48",
> "0|Set|CHANNEL(language)=") in new stack
>     -- Executing [s at macro-user-callerid:13] NoOp("SIP/503-089fcc48", "TTL:
>  ARG1: SKIPTTL") in new stack
>     -- Executing [s at macro-user-callerid:14] GotoIf("SIP/503-089fcc48",
> "1?continue") in new stack
>     -- Goto (macro-user-callerid,s,23)
>     -- Executing [s at macro-user-callerid:23] NoOp("SIP/503-089fcc48", "Using
> CallerID "Jack Missrie" <503>") in new stack
>     -- Executing [252553957468 at from-internal:2] Set("SIP/503-089fcc48",
> "_NODEST=") in new stack
>     -- Executing [252553957468 at from-internal:3] Macro("SIP/503-089fcc48",
> "record-enable|503|OUT|") in new stack
>     -- Executing [s at macro-record-enable:1] GotoIf("SIP/503-089fcc48",
> "0?2:4") in new stack
>     -- Goto (macro-record-enable,s,4)
>     -- Executing [s at macro-record-enable:4] AGI("SIP/503-089fcc48",
> "recordingcheck|20090326-131502|1238087702.2") in new stack
>     -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
>   recordingcheck|20090326-131502|1238087702.2: Outbound recording not
> enabled
>     -- AGI Script recordingcheck completed, returning 0
>     -- Executing [s at macro-record-enable:5] NoOp("SIP/503-089fcc48", "No
> recording needed") in new stack
>     -- Executing [252553957468 at from-internal:4] Macro("SIP/503-089fcc48",
> "dialout-trunk|15|53957468||") in new stack
>     -- Executing [s at macro-dialout-trunk:1] Set("SIP/503-089fcc48",
> "DIAL_TRUNK=15") in new stack
>     -- Executing [s at macro-dialout-trunk:2] ExecIf("SIP/503-089fcc48",
> "0|Authenticate|") in new stack
>     -- Executing [s at macro-dialout-trunk:3] GotoIf("SIP/503-089fcc48",
> "0?disabletrunk|1") in new stack
>     -- Executing [s at macro-dialout-trunk:4] Set("SIP/503-089fcc48",
> "DIAL_NUMBER=53957468") in new stack
>     -- Executing [s at macro-dialout-trunk:5] Set("SIP/503-089fcc48",
> "DIAL_TRUNK_OPTIONS=Ttrw") in new stack
>     -- Executing [s at macro-dialout-trunk:6] Set("SIP/503-089fcc48",
> "GROUP()=OUT_15") in new stack
>     -- Executing [s at macro-dialout-trunk:7] GotoIf("SIP/503-089fcc48",
> "1?nomax") in new stack
>     -- Goto (macro-dialout-trunk,s,9)
>     -- Executing [s at macro-dialout-trunk:9] GotoIf("SIP/503-089fcc48",
> "0?skipoutcid") in new stack
>     -- Executing [s at macro-dialout-trunk:10] Set("SIP/503-089fcc48",
> "DIAL_TRUNK_OPTIONS=") in new stack
>     -- Executing [s at macro-dialout-trunk:11] Macro("SIP/503-089fcc48",
> "outbound-callerid|15") in new stack
>     -- Executing [s at macro-outbound-callerid:1] GotoIf("SIP/503-089fcc48",
> "1?start") in new stack
>     -- Goto (macro-outbound-callerid,s,3)
>     -- Executing [s at macro-outbound-callerid:3] NoOp("SIP/503-089fcc48",
> "REALCALLERIDNUM is 503") in new stack
>     -- Executing [s at macro-outbound-callerid:4] GotoIf("SIP/503-089fcc48",
> "1?normcid") in new stack
>     -- Goto (macro-outbound-callerid,s,9)
>     -- Executing [s at macro-outbound-callerid:9] Set("SIP/503-089fcc48",
> "USEROUTCID=") in new stack
>     -- Executing [s at macro-outbound-callerid:10] Set("SIP/503-089fcc48",
> "EMERGENCYCID=") in new stack
>     -- Executing [s at macro-outbound-callerid:11] Set("SIP/503-089fcc48",
> "TRUNKOUTCID=") in new stack
>     -- Executing [s at macro-outbound-callerid:12] GotoIf("SIP/503-089fcc48",
> "1?trunkcid") in new stack
>     -- Goto (macro-outbound-callerid,s,16)
>     -- Executing [s at macro-outbound-callerid:16] GotoIf("SIP/503-089fcc48",
> "1?usercid") in new stack
>     -- Goto (macro-outbound-callerid,s,18)
>     -- Executing [s at macro-outbound-callerid:18] GotoIf("SIP/503-089fcc48",
> "1?report") in new stack
>     -- Goto (macro-outbound-callerid,s,22)
>     -- Executing [s at macro-outbound-callerid:22] NoOp("SIP/503-089fcc48",
> "CallerID set to "Jack Missrie" <503>") in new stack
>     -- Executing [s at macro-dialout-trunk:12] AGI("SIP/503-089fcc48",
> "fixlocalprefix") in new stack
>     -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
>     -- AGI Script fixlocalprefix completed, returning 0
>     -- Executing [s at macro-dialout-trunk:13] Set("SIP/503-089fcc48",
> "OUTNUM=53957468") in new stack
>     -- Executing [s at macro-dialout-trunk:14] Set("SIP/503-089fcc48",
> "custom=AMP") in new stack
>     -- Executing [s at macro-dialout-trunk:15] GotoIf("SIP/503-089fcc48",
> "1?gocall") in new stack
>     -- Goto (macro-dialout-trunk,s,17)
>     -- Executing [s at macro-dialout-trunk:17] Macro("SIP/503-089fcc48",
> "dialout-trunk-predial-hook|") in new stack
> [Mar 26 13:15:03] WARNING[3164]: app_macro.c:214 _macro_exec: Context
> 'macro-dialout-trunk-predial-hook' for macro 'dialout-trunk-predial-hook'
> lacks 's' extension, priority 1
>     -- Executing [s at macro-dialout-trunk:18] GotoIf("SIP/503-089fcc48",
> "0?bypass|1") in new stack
>     -- Executing [s at macro-dialout-trunk:19] GotoIf("SIP/503-089fcc48",
> "1?customtrunk") in new stack
>     -- Goto (macro-dialout-trunk,s,22)
>     -- Executing [s at macro-dialout-trunk:22] Set("SIP/503-089fcc48",
> "pre_num=AMP:UNICALL/g0/") in new stack
>     -- Executing [s at macro-dialout-trunk:23] Set("SIP/503-089fcc48",
> "the_num=OUTNUM") in new stack
>     -- Executing [s at macro-dialout-trunk:24] Set("SIP/503-089fcc48",
> "post_num=") in new stack
>     -- Executing [s at macro-dialout-trunk:25] GotoIf("SIP/503-089fcc48",
> "1?outnum:skipoutnum") in new stack
>     -- Goto (macro-dialout-trunk,s,26)
>     -- Executing [s at macro-dialout-trunk:26] Set("SIP/503-089fcc48",
> "the_num=53957468") in new stack
>     -- Executing [s at macro-dialout-trunk:27] Dial("SIP/503-089fcc48",
> "UNICALL/g0/53957468|300|") in new stack
>     -- Called g0/53957468
> [Mar 26 13:15:03] NOTICE[3164]: chan_unicall.c:2516 handle_uc_event:
> Unicall/1 event Dialing
> [Mar 26 13:15:03] NOTICE[3164]: chan_unicall.c:1912 unicall_exception:
> Exception on 9, channel 1
>     -- Hungup 'UniCall/1-1'
>   == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on
> 'SIP/503-089fcc48' in macro 'dialout-trunk'
>   == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on
> 'SIP/503-089fcc48'
>     -- Executing [h at macro-dialout-trunk:1] Macro("SIP/503-089fcc48",
> "hangupcall|") in new stack
>     -- Executing [s at macro-hangupcall:1] ResetCDR("SIP/503-089fcc48", "w") in
> new stack
>     -- Executing [s at macro-hangupcall:2] NoCDR("SIP/503-089fcc48", "") in new
> stack
>     -- Executing [s at macro-hangupcall:3] GotoIf("SIP/503-089fcc48",
> "1?skiprg") in new stack
>     -- Goto (macro-hangupcall,s,6)
>     -- Executing [s at macro-hangupcall:6] GotoIf("SIP/503-089fcc48",
> "1?skipblkvm") in new stack
>     -- Goto (macro-hangupcall,s,9)
>     -- Executing [s at macro-hangupcall:9] GotoIf("SIP/503-089fcc48",
> "1?theend") in new stack
>     -- Goto (macro-hangupcall,s,11)
>     -- Executing [s at macro-hangupcall:11] Hangup("SIP/503-089fcc48", "") in
> new stack
>   == Spawn extension (macro-hangupcall, s, 11) exited non-zero on
> 'SIP/503-089fcc48' in macro 'hangupcall'
>   == Spawn extension (macro-hangupcall, s, 11) exited non-zero on
> 'SIP/503-089fcc48'
> [Mar 26 13:15:05] NOTICE[3127]: chan_unicall.c:2516 handle_uc_event:
> Unicall/1 event Release call
>
> INCOMING CALLS (WORKING OK)
> Connected to Asterisk 1.4.22-rc5 currently running on ipbell (pid = 2572)
> Verbosity is at least 3
> [Mar 26 13:31:33] NOTICE[3127]: chan_unicall.c:2516 handle_uc_event:
> Unicall/3 event Detected
> [Mar 26 13:31:36] NOTICE[3127]: chan_unicall.c:2516 handle_uc_event:
> Unicall/3 event Offered
> [Mar 26 13:31:36] NOTICE[3127]: chan_unicall.c:2640 handle_uc_event: CRN
> 32769 - Offered on channel 0 (ANI: 5551478040, DNIS: 5004, Cat: 1)
> [Mar 26 13:31:36] NOTICE[3127]: chan_unicall.c:2516 handle_uc_event:
> Unicall/3 event Accepted
>     -- Executing [5004 at from-pstn:1] NoOp("UniCall/3-1", "Catch-All DID Match
> - Found 5004 - You probably want a DID for this.") in new stack
>     -- Executing [5004 at from-pstn:2] Goto("UniCall/3-1", "ext-did|s|1") in
> new stack
>     -- Goto (ext-did,s,1)
>     -- Executing [s at ext-did:1] Set("UniCall/3-1", "__FROM_DID=s") in new
> stack
>     -- Executing [s at ext-did:2] GotoIf("UniCall/3-1", "0 ?cidok") in new
> stack
>     -- Executing [s at ext-did:3] Set("UniCall/3-1",
> "CALLERID(name)=5551478040") in new stack
>     -- Executing [s at ext-did:4] NoOp("UniCall/3-1", "CallerID is "5551478040"
> <5551478040>") in new stack
>     -- Executing [s at ext-did:5] Goto("UniCall/3-1", "timeconditions|1|1") in
> new stack
>     -- Goto (timeconditions,1,1)
>     -- Executing [1 at timeconditions:1] GotoIfTime("UniCall/3-1",
> "09:00-20:00|mon-fri|*|*?ivr-2|s|1") in new stack
>     -- Goto (ivr-2,s,1)
>     -- Executing [s at ivr-2:1] Set("UniCall/3-1", "LOOPCOUNT=0") in new stack
>     -- Executing [s at ivr-2:2] Set("UniCall/3-1", "__DIR-CONTEXT=default") in
> new stack
>     -- Executing [s at ivr-2:3] Set("UniCall/3-1", "_IVR_CONTEXT_ivr-2=") in
> new stack
>     -- Executing [s at ivr-2:4] Set("UniCall/3-1", "_IVR_CONTEXT=ivr-2") in new
> stack
>     -- Executing [s at ivr-2:5] GotoIf("UniCall/3-1", "0?begin") in new stack
>     -- Executing [s at ivr-2:6] Answer("UniCall/3-1", "") in new stack
>     -- Executing [s at ivr-2:7] Wait("UniCall/3-1", "1") in new stack
> [Mar 26 13:31:36] NOTICE[3188]: chan_unicall.c:2516 handle_uc_event:
> Unicall/3 event Answered
>     -- Executing [s at ivr-2:8] Set("UniCall/3-1", "TIMEOUT(digit)=3") in new
> stack
>     -- Digit timeout set to 3
>     -- Executing [s at ivr-2:9] Set("UniCall/3-1", "TIMEOUT(response)=10") in
> new stack
>     -- Response timeout set to 10
>     -- Executing [s at ivr-2:10] BackGround("UniCall/3-1", "custom/aa_3-ivr")
> in new stack
>     -- <UniCall/3-1> Playing 'custom/aa_3-ivr' (language 'es')
> [Mar 26 13:31:41] NOTICE[3188]: chan_unicall.c:1912 unicall_exception:
> Exception on 11, channel 3
> [Mar 26 13:31:41] NOTICE[3188]: chan_unicall.c:2516 handle_uc_event:
> Unicall/3 event Far end disconnected
> [Mar 26 13:31:41] NOTICE[3188]: chan_unicall.c:2788 handle_uc_event: CRN
> 32769 - far disconnected cause=Normal Clearing [16]
>     -- Channel 0 got hangup
> [Mar 26 13:31:41] WARNING[3188]: file.c:677 ast_readaudio_callback: Failed
> to write frame
>   == Spawn extension (ivr-2, s, 10) exited non-zero on 'UniCall/3-1'
>     -- Executing [h at ivr-2:1] Hangup("UniCall/3-1", "") in new stack
>   == Spawn extension (ivr-2, h, 1) exited non-zero on 'UniCall/3-1'
>     -- Hungup 'UniCall/3-1'
> [Mar 26 13:31:41] NOTICE[3127]: chan_unicall.c:2516 handle_uc_event:
> Unicall/3 event Drop call
> [Mar 26 13:31:41] NOTICE[3127]: chan_unicall.c:2516 handle_uc_event:
> Unicall/3 event Release call
>     -- Unicall/3 released
> Eli Sitt
> __________________________
> esitt23 at gmail.com
> Infinit Voip Solutions
> Tel- 5004 7616 ext. 501
> Mexico City.
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-r2 mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-r2
>



-- 
"I do not agree with what you have to say, but I’ll defend to the
death your right to say it." Voltaire



More information about the asterisk-r2 mailing list