[asterisk-users] setvar=CDR(accountcode)=${EXTEN} in sip.conf ???

Matt Riddell lists at venturevoip.com
Fri Sep 4 18:05:35 CDT 2009


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)



More information about the asterisk-users mailing list