Re: [asterisk-users] Problem with Polycom forwarding
On Tue, 2008-05-20 at 10:55 -0400, Mike wrote: Hi, I am having trouble with Polycom forwards and Asterisk. Basically, I have no clue on how to force callerid or even custom variables (set using SetVar in the sip.conf file) on the transfered call. For example, I set a variable called var_a to foo. When the call comes in, the variable is set. The Polycom is set to forward the call to 555-555-1234. When that second leg of the same is done, var_a is unset. Did you try _var_a? Iirc you need to prepend it with an underscore to make the variable persistent. Regards, Patrick ___ -- 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
Re: [asterisk-users] Problem with Polycom forwarding
I am having trouble with Polycom forwards and Asterisk. Basically, I have no clue on how to force callerid or even custom variables (set using SetVar in the sip.conf file) on the transfered call. For example, I set a variable called var_a to foo. When the call comes in, the variable is set. The Polycom is set to forward the call to 555-555-1234. When that second leg of the same is done, var_a is unset. Did you try _var_a? Iirc you need to prepend it with an underscore to make the variable persistent. Regards, Patrick I had not tried (I did not know that), but it did not help. Problem is a call coming in to the Polycom is coming in to a registration, which is linked to a sip.conf entry. If it's a normal registration, all is fine. If it's a forward, it doesn't work. Maybe the problem comes from the fact that it's a variable in my sip database (I am using realtime SIP entries) and not in the diaplan per say. My setvar column is this: internal_callerid=blabla 123;did=551234 I tried adding underscores before did (as in: internal_callerid=blabla 123;__did=551234) but that didn't help. Mike ___ -- 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
Re: [asterisk-users] Problem with Polycom forwarding
Did you try _var_a? Iirc you need to prepend it with an underscore to make the variable persistent. Forget my previous email, it didn't quite work that simply but I tweaked my dialplan and you had the right solution. Thank you, Mike ___ -- 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
Re: [asterisk-users] Problem with Polycom forwarding
On Tuesday 20 May 2008 11:26:34 Mike wrote: I am having trouble with Polycom forwards and Asterisk. Basically, I have no clue on how to force callerid or even custom variables (set using SetVar in the sip.conf file) on the transfered call. For example, I set a variable called var_a to foo. When the call comes in, the variable is set. The Polycom is set to forward the call to 555-555-1234. When that second leg of the same is done, var_a is unset. Did you try _var_a? Iirc you need to prepend it with an underscore to make the variable persistent. Regards, Patrick I had not tried (I did not know that), but it did not help. Problem is a call coming in to the Polycom is coming in to a registration, which is linked to a sip.conf entry. If it's a normal registration, all is fine. If it's a forward, it doesn't work. Maybe the problem comes from the fact that it's a variable in my sip database (I am using realtime SIP entries) and not in the diaplan per say. My setvar column is this: internal_callerid=blabla 123;did=551234 I tried adding underscores before did (as in: internal_callerid=blabla 123;__did=551234) but that didn't help. Could you show us your dialplan? There are any number of things that could be happening. -- Tilghman ___ -- 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
Re: [asterisk-users] Problem with Polycom forwarding
Mike wrote: I am having trouble with Polycom forwards and Asterisk. Basically, I have no clue on how to force callerid or even custom variables (set using SetVar in the sip.conf file) on the transfered call. For example, I set a variable called var_a to foo. When the call comes in, the variable is set. The Polycom is set to forward the call to 555-555-1234. When that second leg of the same is done, var_a is unset. Did you try _var_a? Iirc you need to prepend it with an underscore to make the variable persistent. Regards, Patrick I had not tried (I did not know that), but it did not help. Problem is a call coming in to the Polycom is coming in to a registration, which is linked to a sip.conf entry. If it's a normal registration, all is fine. If it's a forward, it doesn't work. Maybe the problem comes from the fact that it's a variable in my sip database (I am using realtime SIP entries) and not in the diaplan per say. My setvar column is this: internal_callerid=blabla 123;did=551234 I tried adding underscores before did (as in: internal_callerid=blabla 123;__did=551234) but that didn't help. Mike ___ -- 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 You're close, it's not a fact of being persistent, it's inheritance that's the issue. Using a single underscore sets future spawned channels to have access to the variable ___ -- 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