Re: [asterisk-users] disposition "answered" after authenticate?
Thanks Philipp it works.. > Oguzhan Kayhan schrieb: >> Problem is, if the user authenticates, * starts counting as billable >> seconds even if i hangup the phone before the called party answers..And >> also >> as disposition.. it accepts all calls authenticated as 'answered' >> If i commentout the authentication line everything works as it should >> be. >> How should i use authentication that, it should accept it as aswered by >> default. >> Here is my dialplan: >> [CallingRule_testcall] >> exten = _0XX,1,Authenticate(/etc/asterisk/passwords,an) >> exten = _0XX,n,Set(CALLERID(num)=0312290${CALLERID(num)}) >> exten = >> _0XX,n,Macro(trunkdial-failover-0.3,${test}/${EXTEN:0},${span_1}/9${EXTEN:0},test,span_1) > > Try ResetCDR() after Authenticate(). > > > Philipp Kempgen > -- > AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de > Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 > Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de > Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de > -- > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] disposition "answered" after authenticate?
Oguzhan Kayhan schrieb: > Problem is, if the user authenticates, * starts counting as billable > seconds even if i hangup the phone before the called party answers..And > also > as disposition.. it accepts all calls authenticated as 'answered' > If i commentout the authentication line everything works as it should be. > How should i use authentication that, it should accept it as aswered by > default. > Here is my dialplan: > [CallingRule_testcall] > exten = _0XX,1,Authenticate(/etc/asterisk/passwords,an) > exten = _0XX,n,Set(CALLERID(num)=0312290${CALLERID(num)}) > exten = > _0XX,n,Macro(trunkdial-failover-0.3,${test}/${EXTEN:0},${span_1}/9${EXTEN:0},test,span_1) Try ResetCDR() after Authenticate(). Philipp Kempgen -- AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de -- ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] disposition "answered" after authenticate??????????
Hi, I have the following dialplan. Problem is, if the user authenticates, * starts counting as billable seconds even if i hangup the phone before the called party answers..And also as disposition.. it accepts all calls authenticated as 'answered' If i commentout the authentication line everything works as it should be. How should i use authentication that, it should accept it as aswered by default. Here is my dialplan: [CallingRule_testcall] exten = _0XX,1,Authenticate(/etc/asterisk/passwords,an) exten = _0XX,n,Set(CALLERID(num)=0312290${CALLERID(num)}) exten = _0XX,n,Macro(trunkdial-failover-0.3,${test}/${EXTEN:0},${span_1}/9${EXTEN:0},test,span_1) And here is the debug on ast. cli Using UDPTL CoS mark 5 -- Executing [05...@dlpn_test:1] Authenticate("SIP/8000-b51e04e0", "/etc/asterisk/passwords,an") in new stack -- Playing 'agent-pass.ulaw' (language 'de') -- Playing 'auth-thankyou.ulaw' (language 'de') -- Executing [051...@dlpn_test:2] Set("SIP/8000-b51e04e0", "CALLERID(num)=0312290") in new stack -- Executing [051...@dlpn_test:3] Macro("SIP/8000-b51e04e0", "trunkdial-failover-0.4,SIP/test/05111,DAHDI/g1/9053111,test,span_1") in new stack -- Executing [...@macro-trunkdial-failover-0.4:1] GotoIf("SIP/8000-b51e04e0", "1?1-dial,1") in new stack -- Goto (macro-trunkdial-failover-0.4,1-dial,1) -- Executing [1-d...@macro-trunkdial-failover-0.4:1] Dial("SIP/8000-b51e04e0", "SIP/test/05") in new stack == Using SIP RTP CoS mark 5 == Using SIP VRTP CoS mark 6 == Using UDPTL CoS mark 5 -- Called test/05323939196 -- SIP/Superonline-b474f218 is making progress passing it to SIP/8000-b51e04e0 -- SIP/Superonline-b474f218 is making progress passing it to SIP/8000-b51e04e0 == Spawn extension (macro-trunkdial-failover-0.4, 1-dial, 1) exited non-zero on 'SIP/8000-b51e04e0' in macro 'trunkdial-failover-0.4' == Spawn extension (DLPN_test, 05, 3) exited non-zero on 'SIP/8000-b51e04e0' ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users