[asterisk-users] Define SIP fromuser field in Dial()-command
registrator
registrator at mysam.com.ua
Fri Apr 14 03:46:45 CDT 2017
Hello!
May be you help CALLERID(name) function?
exten => _X.,1,Set(CALLERID(name)=$name)
Then you well see INVITE
SIP : FROM "$name" .....
Sent from: Lenovo P70-A
On Apr 14, 2017 10:54 AM, Jonas Kellens <jonas.kellens at telenet.be> wrote:
>
> Hello
>
>
> any input on this ? How to set user-field in From-header with the Dial()-command in dialplan ?
>
>
>
> Kind regards
>
> J.
>
>
> On 03-04-17 10:25, Jonas Kellens wrote:
>>
>> Hello
>>
>> how can I set the fromuser field of the SIP INVITE when using the Dial()-command in the dialplan ?
>>
>> None of the below Dial() command give the correct result :
>>
>> exten => _XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user762 at myprovider.biz)
>> exten => _XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user762 at myprovider.biz/${EXTEN})
>> exten => _XX.,n,Dial(SIP/user762:passwdk5j6::user762 at myprovider.biz/${EXTEN})
>> exten => _XX.,n,Dial(SIP/user762:passwdk5j6 at myprovider.biz/${EXTEN})
>>
>> The From part of the SIP INVITE always has the EXTEN in it in stead of the user (user762) :
>>
>> From: "the_extension" <sip:the_extension at my.ip.add.ress>;tag=as224453ac
>>
>> How can I get :
>>
>> From: "the_extension" <sip:user762 at my.ip.add.ress>;tag=as224453ac
>>
>> ??
>>
>>
>>
>> I know about sip.conf. That is not the question. My question is clear : how to set this in dialplan ?
>>
>>
>>
>> Thank you for the feedback.
>>
>>
>> Kind regards.
>>
>>
>
More information about the asterisk-users
mailing list