Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-14 Thread Jonas Kellens

Hello


function sip_header is read-only.




Kind regards.

J.



On 14-04-17 11:28, registrator wrote:

In this case you will help function SIP_HEADER(from)


Sent from: Lenovo P70-A

On Apr 14, 2017 12:04 PM, Jonas Kellens  wrote:

Hello


this does not set user field in From-header.

I get :

From: "user762" ;tag=as7f44c043

What I want is :

From: "9876543210" ;tag=as7f44c043


I need this part : 

you see the user part ? I need to set the value 'user762'




Kind regards

J.




On 14-04-17 10:46, registrator wrote:

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  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::user...@myprovider.biz)

exten => _XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user...@myprovider.biz/${EXTEN})

exten => _XX.,n,Dial(SIP/user762:passwdk5j6::user...@myprovider.biz/${EXTEN})

exten => _XX.,n,Dial(SIP/user762:passwdk...@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" ;tag=as224453ac



How can I get :



From: "the_extension" ;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.







-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-14 Thread registrator
In this case you will help function SIP_HEADER(from)


Sent from: Lenovo P70-A

On Apr 14, 2017 12:04 PM, Jonas Kellens  wrote:
>
> Hello
>
>
> this does not set user field in From-header.
>
> I get :
>
> From: "user762" ;tag=as7f44c043
>
> What I want is :
>
> From: "9876543210" ;tag=as7f44c043
>
>
> I need this part : 
>
> you see the user part ? I need to set the value 'user762'
>
>
>
>
> Kind regards
>
> J.
>
>
>
>
> On 14-04-17 10:46, registrator wrote:
>>
>> 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  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::user...@myprovider.biz)

 exten => 
 _XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user...@myprovider.biz/${EXTEN})

 exten => 
 _XX.,n,Dial(SIP/user762:passwdk5j6::user...@myprovider.biz/${EXTEN})

 exten => _XX.,n,Dial(SIP/user762:passwdk...@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" ;tag=as224453ac



 How can I get :



 From: "the_extension" ;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.





>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-14 Thread Jonas Kellens

Hello


this does not set user field in From-header.

I get :

From: "user762" ;tag=as7f44c043

What I want is :

From: "9876543210" ;tag=as7f44c043


I need this part : 

you see the user part ? I need to set the value 'user762'




Kind regards

J.




On 14-04-17 10:46, registrator wrote:

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  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::user...@myprovider.biz)
exten => _XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user...@myprovider.biz/${EXTEN})
exten => _XX.,n,Dial(SIP/user762:passwdk5j6::user...@myprovider.biz/${EXTEN})
exten => _XX.,n,Dial(SIP/user762:passwdk...@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";tag=as224453ac

How can I get :

From: "the_extension";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.




-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-14 Thread registrator
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  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::user...@myprovider.biz)
>> exten => 
>> _XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user...@myprovider.biz/${EXTEN})
>> exten => _XX.,n,Dial(SIP/user762:passwdk5j6::user...@myprovider.biz/${EXTEN})
>> exten => _XX.,n,Dial(SIP/user762:passwdk...@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" ;tag=as224453ac
>>
>> How can I get :
>>
>> From: "the_extension" ;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.
>>
>>
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-14 Thread Jonas Kellens

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::user...@myprovider.biz)
exten => 
_XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user...@myprovider.biz/${EXTEN})
exten => 
_XX.,n,Dial(SIP/user762:passwdk5j6::user...@myprovider.biz/${EXTEN})

exten => _XX.,n,Dial(SIP/user762:passwdk...@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" ;tag=as224453ac

How can I get :

From: "the_extension" ;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.




-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-06 Thread Jonas Kellens

Hello


in what way does this set the 'fromuser' field in the SIP INVITE ?



Kind regards.


J.

On 05-04-17 22:05, Pete Mundy wrote:

Hi Jonas

Does the information at this link help?

http://the-asterisk-book.com/1.6/funktionen-callerid.html

Pete


On 5/04/2017, at 8:11 pm, Jonas Kellens > wrote:


Hello

anyone have some useful input on this ?



Thanks.


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 ?





-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-05 Thread Pete Mundy
Hi Jonas 

Does the information at this link help? 

http://the-asterisk-book.com/1.6/funktionen-callerid.html

Pete


> On 5/04/2017, at 8:11 pm, Jonas Kellens  wrote:
> 
> Hello
> 
> anyone have some useful input on this ?
> 
> 
> 
> Thanks.
> 
> 
> 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 ?


smime.p7s
Description: S/MIME cryptographic signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-05 Thread Jonas Kellens

Hello

anyone have some useful input on this ?



Thanks.


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::user...@myprovider.biz)
exten => 
_XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user...@myprovider.biz/${EXTEN})
exten => 
_XX.,n,Dial(SIP/user762:passwdk5j6::user...@myprovider.biz/${EXTEN})

exten => _XX.,n,Dial(SIP/user762:passwdk...@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" ;tag=as224453ac

How can I get :

From: "the_extension" ;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.




-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Define SIP fromuser field in Dial()-command

2017-04-03 Thread Jonas Kellens

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::user...@myprovider.biz)
exten => 
_XX.,n,Dial(SIP/${EXTEN}:passwdk5j6::user...@myprovider.biz/${EXTEN})
exten => 
_XX.,n,Dial(SIP/user762:passwdk5j6::user...@myprovider.biz/${EXTEN})

exten => _XX.,n,Dial(SIP/user762:passwdk...@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" ;tag=as224453ac

How can I get :

From: "the_extension" ;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.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users