Re: [asterisk-users] Call files error
Adding /n partly solved the problem. The two calls are getting connected, but LCR is not working. The 2nd call goes out on the same trunk as the first call ( 1st call was landline, 2nd was mobile, two different routes ) Tamas 2011/2/8 > Just verified I faced the same issue once and got it reolved by adding /n > like > Channel: Local/0036701234567@CustomCallOut-1/n in you case. > > > > > > > -Original Message- > From: "Tamás Dajka" > Sent: Tuesday, February 8, 2011 8:49am > To: "Asterisk Users Mailing List - Non-Commercial Discussion" < > asterisk-users@lists.digium.com> > Subject: Re: [asterisk-users] Call files error > > How can I do that, and do it with LCR? > > 2011/2/8 > >> Why don't you use single callfile and set CLI and other perameters in >> dial-plan as unique as you need? >> >> >> >> >> -Original Message- >> From: "Tamás Dajka" >> Sent: Tuesday, February 8, 2011 7:45am >> To: asterisk-users@lists.digium.com >> Subject: [asterisk-users] Call files error >> >> Hi All, >> >> I'm having some troubles with using call files. >> >> I'm trying to establish the following: >> - want to use call files to connect two (outside) extensions >> - want to use the outbound routes set in FreePBX >> - want to set the outgoing callerid for both calls >> - want to set a custom CDR field in MySQL ( field name 'azonosito' ) >> >> Asterisk is version 1.8.2.3 with freepbx 2.8.1. >> >> What I've tried is to create two custom context and place the call through >> them. >> >> The call file: >> >> ; First CID >> SetVar: callid1=0036 >> SetVar: azon1=elso hivas azonosito { Viperke } >> ; Frist phone num >> Channel: Local/0036701234567@CustomCallOut-1 >> >> WaitTime: 45 >> MaxRetries: 0 >> RetryTime: 0 >> ; 2nd CID >> SetVar: callid2=0036204313763 >> SetVar: azon2=masodik hivas azonosito { V1pr: ehehhe } >> Context: CustomCallOut-2 >> ; 2nd phone num >> Extension: 003617654321 >> >> >> >> The contexts: >> >> [CustomCallOut-1] >> ; set custom CDR >> exten => _0X.,1,Set(CDR(azonosito)=${azon1}) >> exten => _0X.,n,Set(CALLERPRES()=allowed) >> exten => _0X.,n,Set(CALLERID(number)=<${callid1}>) >> >> >> exten => _0X.,n,Set(KEEPCID=TRUE) >> ; pass the call to internal routing >> include => from-internal >> >> [CustomCallOut-2] >> exten => _0X.,1,Wait(1) >> ; set custom CDR >> exten => _0X.,2,Set(CDR(azonosito)=${azon2}) >> >> >> exten => _0X.,3,Playtones(ring) >> exten => _0X.,n,Set(CALLERPRES()=allowed) >> exten => _0X.,n,Set(CALLERID(number)=<${callid2}>) >> exten => _0X.,n,Set(KEEPCID=TRUE) >> ; pass the call to internal routing >> >> >> include => from-internal >> >> >> >> However the two calls are placed, the CDRs and the callerids are set >> correctly, we can't hear each other. As I saw in the logs, the problem is >> that the calls are placed in the same context, and not being connected ( >> like one call, but with the variable EXTEN changed ). >> >> I'm really confused about doing this, so can you please advise? >> >> Thanks, >> >> Tamas >> >> >> -- >> _ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> 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 -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files error
Just verified I faced the same issue once and got it reolved by adding /n like Channel: [mailto:Local/0036701234567@CustomCallOut-1/n] Local/0036701234567@CustomCallOut-1/n in you case. -Original Message- From: "Tamás Dajka" Sent: Tuesday, February 8, 2011 8:49am To: "Asterisk Users Mailing List - Non-Commercial Discussion" Subject: Re: [asterisk-users] Call files error How can I do that, and do it with LCR? 2011/2/8 <[mailto:fai...@vopium.com] fai...@vopium.com> Why don't you use single callfile and set CLI and other perameters in dial-plan as unique as you need? -Original Message- From: "Tamás Dajka" <[mailto:tda...@gmail.com] tda...@gmail.com> Sent: Tuesday, February 8, 2011 7:45am To: [mailto:asterisk-users@lists.digium.com] asterisk-users@lists.digium.com Subject: [asterisk-users] Call files error Hi All, I'm having some troubles with using call files. I'm trying to establish the following: - want to use call files to connect two (outside) extensions - want to use the outbound routes set in FreePBX - want to set the outgoing callerid for both calls - want to set a custom CDR field in MySQL ( field name 'azonosito' ) Asterisk is version 1.8.2.3 with freepbx 2.8.1. What I've tried is to create two custom context and place the call through them. The call file: ; First CID SetVar: callid1=0036 SetVar: azon1=elso hivas azonosito { Viperke } ; Frist phone num Channel: Local/0036701234567@CustomCallOut-1 WaitTime: 45 MaxRetries: 0 RetryTime: 0 ; 2nd CID SetVar: callid2=0036204313763 SetVar: azon2=masodik hivas azonosito { V1pr: ehehhe } Context: CustomCallOut-2 ; 2nd phone num Extension: 003617654321 The contexts: [CustomCallOut-1] ; set custom CDR exten => _0X.,1,Set(CDR(azonosito)=${azon1}) exten => _0X.,n,Set(CALLERPRES()=allowed) exten => _0X.,n,Set(CALLERID(number)=<${callid1}>) exten => _0X.,n,Set(KEEPCID=TRUE) ; pass the call to internal routing include => from-internal [CustomCallOut-2] exten => _0X.,1,Wait(1) ; set custom CDR exten => _0X.,2,Set(CDR(azonosito)=${azon2}) exten => _0X.,3,Playtones(ring) exten => _0X.,n,Set(CALLERPRES()=allowed) exten => _0X.,n,Set(CALLERID(number)=<${callid2}>) exten => _0X.,n,Set(KEEPCID=TRUE) ; pass the call to internal routing include => from-internal However the two calls are placed, the CDRs and the callerids are set correctly, we can't hear each other. As I saw in the logs, the problem is that the calls are placed in the same context, and not being connected ( like one call, but with the variable EXTEN changed ). I'm really confused about doing this, so can you please advise? Thanks, Tamas -- _ -- Bandwidth and Colocation Provided by [http://www.api-digital.com/] http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: [http://www.asterisk.org/hello] http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: [http://lists.digium.com/mailman/listinfo/asterisk-users] http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files error
How can I do that, and do it with LCR? 2011/2/8 > Why don't you use single callfile and set CLI and other perameters in > dial-plan as unique as you need? > > > > > -Original Message- > From: "Tamás Dajka" > Sent: Tuesday, February 8, 2011 7:45am > To: asterisk-users@lists.digium.com > Subject: [asterisk-users] Call files error > > Hi All, > > I'm having some troubles with using call files. > > I'm trying to establish the following: > - want to use call files to connect two (outside) extensions > - want to use the outbound routes set in FreePBX > - want to set the outgoing callerid for both calls > - want to set a custom CDR field in MySQL ( field name 'azonosito' ) > > Asterisk is version 1.8.2.3 with freepbx 2.8.1. > > What I've tried is to create two custom context and place the call through > them. > > The call file: > > ; First CID > SetVar: callid1=0036 > SetVar: azon1=elso hivas azonosito { Viperke } > ; Frist phone num > Channel: Local/0036701234567@CustomCallOut-1 > > WaitTime: 45 > MaxRetries: 0 > RetryTime: 0 > ; 2nd CID > SetVar: callid2=0036204313763 > SetVar: azon2=masodik hivas azonosito { V1pr: ehehhe } > Context: CustomCallOut-2 > ; 2nd phone num > Extension: 003617654321 > > > > The contexts: > > [CustomCallOut-1] > ; set custom CDR > exten => _0X.,1,Set(CDR(azonosito)=${azon1}) > exten => _0X.,n,Set(CALLERPRES()=allowed) > exten => _0X.,n,Set(CALLERID(number)=<${callid1}>) > > exten => _0X.,n,Set(KEEPCID=TRUE) > ; pass the call to internal routing > include => from-internal > > [CustomCallOut-2] > exten => _0X.,1,Wait(1) > ; set custom CDR > exten => _0X.,2,Set(CDR(azonosito)=${azon2}) > > exten => _0X.,3,Playtones(ring) > exten => _0X.,n,Set(CALLERPRES()=allowed) > exten => _0X.,n,Set(CALLERID(number)=<${callid2}>) > exten => _0X.,n,Set(KEEPCID=TRUE) > ; pass the call to internal routing > > include => from-internal > > > > However the two calls are placed, the CDRs and the callerids are set > correctly, we can't hear each other. As I saw in the logs, the problem is > that the calls are placed in the same context, and not being connected ( > like one call, but with the variable EXTEN changed ). > > I'm really confused about doing this, so can you please advise? > > Thanks, > > Tamas > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files error
This is obvious for the first Channel ( Channel: Local/0036701234567@CustomCallOut-1/n ), but how to set on the other party? I tried with Context: CustomCallOut-2/n but didn't worked. 2011/2/8 Sherwood McGowan > > > > >> However the two calls are placed, the CDRs and the callerids are set >> correctly, we can't hear each other. As I saw in the logs, the problem is >> that the calls are placed in the same context, and not being connected ( >> like one call, but with the variable EXTEN changed ). >> >> I'm really confused about doing this, so can you please advise? >> >> Thanks, >> >> Tamas >> > > > Tamas, > Try appending /n to both of your Local channel definitions... literally a > forward slash and a lowercase n...not newline :D > > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files error
> However the two calls are placed, the CDRs and the callerids are set > correctly, we can't hear each other. As I saw in the logs, the problem is > that the calls are placed in the same context, and not being connected ( > like one call, but with the variable EXTEN changed ). > > I'm really confused about doing this, so can you please advise? > > Thanks, > > Tamas > Tamas, Try appending /n to both of your Local channel definitions... literally a forward slash and a lowercase n...not newline :D -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files error
Why don't you use single callfile and set CLI and other perameters in dial-plan as unique as you need? -Original Message- From: "Tamás Dajka" Sent: Tuesday, February 8, 2011 7:45am To: asterisk-users@lists.digium.com Subject: [asterisk-users] Call files error Hi All, I'm having some troubles with using call files. I'm trying to establish the following: - want to use call files to connect two (outside) extensions - want to use the outbound routes set in FreePBX - want to set the outgoing callerid for both calls - want to set a custom CDR field in MySQL ( field name 'azonosito' ) Asterisk is version 1.8.2.3 with freepbx 2.8.1. What I've tried is to create two custom context and place the call through them. The call file: ; First CID SetVar: callid1=0036 SetVar: azon1=elso hivas azonosito { Viperke } ; Frist phone num Channel: Local/0036701234567@CustomCallOut-1 WaitTime: 45 MaxRetries: 0 RetryTime: 0 ; 2nd CID SetVar: callid2=0036204313763 SetVar: azon2=masodik hivas azonosito { V1pr: ehehhe } Context: CustomCallOut-2 ; 2nd phone num Extension: 003617654321 The contexts: [CustomCallOut-1] ; set custom CDR exten => _0X.,1,Set(CDR(azonosito)=${azon1}) exten => _0X.,n,Set(CALLERPRES()=allowed) exten => _0X.,n,Set(CALLERID(number)=<${callid1}>) exten => _0X.,n,Set(KEEPCID=TRUE) ; pass the call to internal routing include => from-internal [CustomCallOut-2] exten => _0X.,1,Wait(1) ; set custom CDR exten => _0X.,2,Set(CDR(azonosito)=${azon2}) exten => _0X.,3,Playtones(ring) exten => _0X.,n,Set(CALLERPRES()=allowed) exten => _0X.,n,Set(CALLERID(number)=<${callid2}>) exten => _0X.,n,Set(KEEPCID=TRUE) ; pass the call to internal routing include => from-internal However the two calls are placed, the CDRs and the callerids are set correctly, we can't hear each other. As I saw in the logs, the problem is that the calls are placed in the same context, and not being connected ( like one call, but with the variable EXTEN changed ). I'm really confused about doing this, so can you please advise? Thanks, Tamas -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Call files error
Hi All, I'm having some troubles with using call files. I'm trying to establish the following: - want to use call files to connect two (outside) extensions - want to use the outbound routes set in FreePBX - want to set the outgoing callerid for both calls - want to set a custom CDR field in MySQL ( field name 'azonosito' ) Asterisk is version 1.8.2.3 with freepbx 2.8.1. What I've tried is to create two custom context and place the call through them. The call file: ; First CID SetVar: callid1=0036 SetVar: azon1=elso hivas azonosito { Viperke } ; Frist phone num Channel: Local/0036701234567@CustomCallOut-1 WaitTime: 45 MaxRetries: 0 RetryTime: 0 ; 2nd CID SetVar: callid2=0036204313763 SetVar: azon2=masodik hivas azonosito { V1pr: ehehhe } Context: CustomCallOut-2 ; 2nd phone num Extension: 003617654321 The contexts: [CustomCallOut-1] ; set custom CDR exten => _0X.,1,Set(CDR(azonosito)=${azon1}) exten => _0X.,n,Set(CALLERPRES()=allowed) exten => _0X.,n,Set(CALLERID(number)=<${callid1}>) exten => _0X.,n,Set(KEEPCID=TRUE) ; pass the call to internal routing include => from-internal [CustomCallOut-2] exten => _0X.,1,Wait(1) ; set custom CDR exten => _0X.,2,Set(CDR(azonosito)=${azon2}) exten => _0X.,3,Playtones(ring) exten => _0X.,n,Set(CALLERPRES()=allowed) exten => _0X.,n,Set(CALLERID(number)=<${callid2}>) exten => _0X.,n,Set(KEEPCID=TRUE) ; pass the call to internal routing include => from-internal However the two calls are placed, the CDRs and the callerids are set correctly, we can't hear each other. As I saw in the logs, the problem is that the calls are placed in the same context, and not being connected ( like one call, but with the variable EXTEN changed ). I'm really confused about doing this, so can you please advise? Thanks, Tamas -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users