Re: [asterisk-users] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
On 5/09/09 6:51 PM, Olle E. Johansson wrote: 5 sep 2009 kl. 01.05 skrev Matt Riddell: On 4/09/09 6:22 PM, Olle E. Johansson wrote: 4 sep 2009 kl. 00.44 skrev Matt Riddell: On 4/09/09 10:41 AM, Doug Lytle wrote: Todd Routhier wrote: Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} Set(CDR(accountcode)=${EXTEN}) Nah he's trying to do it in sip.conf Basically what you should do is add the line that Doug recommended to the dialplan - sip.conf can't know what the extension is because it's setting these variables once for a peer. There is an accountcode= setting in sip.conf that solves the issue for you. Both accountcode and amaflags are available for all lines/device configurations in all channel drivers. But can you set it to a variable which will be expanded once the call reaches the dialplan? He is trying to use ${EXTEN} Channel variables only work in the dialplan, never in other configuration files. You need to run this command in the entry of the dialplan, since EXTEN is not set when we create the channel and set the channel variable. Yep, agreed - and it's as I understood it. -- Cheers, Matt Riddell Director ___ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems) ___ -- 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] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
5 sep 2009 kl. 01.05 skrev Matt Riddell: On 4/09/09 6:22 PM, Olle E. Johansson wrote: 4 sep 2009 kl. 00.44 skrev Matt Riddell: On 4/09/09 10:41 AM, Doug Lytle wrote: Todd Routhier wrote: Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} Set(CDR(accountcode)=${EXTEN}) Nah he's trying to do it in sip.conf Basically what you should do is add the line that Doug recommended to the dialplan - sip.conf can't know what the extension is because it's setting these variables once for a peer. There is an accountcode= setting in sip.conf that solves the issue for you. Both accountcode and amaflags are available for all lines/device configurations in all channel drivers. But can you set it to a variable which will be expanded once the call reaches the dialplan? He is trying to use ${EXTEN} Channel variables only work in the dialplan, never in other configuration files. You need to run this command in the entry of the dialplan, since EXTEN is not set when we create the channel and set the channel variable. /O --- o...@edvina.net - http://edvina.net Open Unified Communication - building platforms with SIP and XMPP From PBX to large scale implementations for carriers. Contact us today! ___ -- 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] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
4 sep 2009 kl. 00.44 skrev Matt Riddell: On 4/09/09 10:41 AM, Doug Lytle wrote: Todd Routhier wrote: Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} Set(CDR(accountcode)=${EXTEN}) Nah he's trying to do it in sip.conf Basically what you should do is add the line that Doug recommended to the dialplan - sip.conf can't know what the extension is because it's setting these variables once for a peer. There is an accountcode= setting in sip.conf that solves the issue for you. Both accountcode and amaflags are available for all lines/device configurations in all channel drivers. Cheers, /O --- o...@edvina.net - http://edvina.net Open Unified Communication - building platforms with SIP and XMPP From PBX to large scale implementations for carriers. Contact us today! ___ -- 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] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
On 4/09/09 6:22 PM, Olle E. Johansson wrote: 4 sep 2009 kl. 00.44 skrev Matt Riddell: On 4/09/09 10:41 AM, Doug Lytle wrote: Todd Routhier wrote: Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} Set(CDR(accountcode)=${EXTEN}) Nah he's trying to do it in sip.conf Basically what you should do is add the line that Doug recommended to the dialplan - sip.conf can't know what the extension is because it's setting these variables once for a peer. There is an accountcode= setting in sip.conf that solves the issue for you. Both accountcode and amaflags are available for all lines/device configurations in all channel drivers. But can you set it to a variable which will be expanded once the call reaches the dialplan? He is trying to use ${EXTEN} -- Cheers, Matt Riddell Director ___ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems) ___ -- 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
[asterisk-users] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} It seems to show up in the CDR but it's showing up exactly like this ${EXTEN}. Is there a way to stuff the DNIS (number dialed) into the accountcode for CDR? I have already accomplished setting on a number by number basis, I just want to do it globally for all number when they come in. Thanks in advance. ___ -- 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] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
Todd Routhier wrote: Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} Set(CDR(accountcode)=${EXTEN}) Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. ___ -- 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] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???
On 4/09/09 10:41 AM, Doug Lytle wrote: Todd Routhier wrote: Trying to do something like this in the sip.conf under my incoming provider profiles: setvar=CDR(accountcode)=${EXTEN} Set(CDR(accountcode)=${EXTEN}) Nah he's trying to do it in sip.conf Basically what you should do is add the line that Doug recommended to the dialplan - sip.conf can't know what the extension is because it's setting these variables once for a peer. -- Cheers, Matt Riddell Director ___ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems) ___ -- 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