Re: [asterisk-users] How to control host part of From: field content from the dialplan [SOLVED]

2016-03-04 Thread Olivier
2016-03-04 18:59 GMT+01:00 Richard Mudgett :

>
>
> On Fri, Mar 4, 2016 at 11:45 AM, Olivier  wrote:
>
>> Hello,
>>
>> I've read SIP Connect 2.0 draft lately.
>>
>> It mentions specific use if either of the following values is present in
>> the From: field of an INVITE message.
>> The values are:
>> sip:unavailable@unkown.invalid
>> sip:anonymous@anonymous.invalid
>>
>> I'm using Asterisk 13 and PJSIP.
>> Which dialplan function can I use if I want to send an outbound SIP call
>> with a From field matching the above values ?
>>
>> I've tried with :
>> Set(CALLERID(num)=unavailable@unkown.invalid)
>>
>> and got:
>> From: "Bob" > >;tag=d74792e3-f646-4dd9-90fe-e4dc62ea728d
>>
>
> That is currently not supported by chan_pjsip.  There is an issue [1] for
> it and a
> corresponding patch on gerrit [2] to resolve it.  The patch is actively
> being
> reviewed/updated to get it merged into the codebase.
>
> [1] https://issues.asterisk.org/jira/browse/ASTERISK-25791
> [2] https://gerrit.asterisk.org/#/c/2293/
>
> Richard
>


So, if the patch gets committed to trunk, then using the following should
do it :
CALLERID(pres)=unavailable
CALLERID(pres)=prohib

Thanks Richard for this prompt and valuable reply.


>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] How to control host part of From: field content from the dialplan

2016-03-04 Thread Richard Mudgett
On Fri, Mar 4, 2016 at 11:45 AM, Olivier  wrote:

> Hello,
>
> I've read SIP Connect 2.0 draft lately.
>
> It mentions specific use if either of the following values is present in
> the From: field of an INVITE message.
> The values are:
> sip:unavailable@unkown.invalid
> sip:anonymous@anonymous.invalid
>
> I'm using Asterisk 13 and PJSIP.
> Which dialplan function can I use if I want to send an outbound SIP call
> with a From field matching the above values ?
>
> I've tried with :
> Set(CALLERID(num)=unavailable@unkown.invalid)
>
> and got:
> From: "Bob"  >;tag=d74792e3-f646-4dd9-90fe-e4dc62ea728d
>

That is currently not supported by chan_pjsip.  There is an issue [1] for
it and a
corresponding patch on gerrit [2] to resolve it.  The patch is actively
being
reviewed/updated to get it merged into the codebase.

[1] https://issues.asterisk.org/jira/browse/ASTERISK-25791
[2] https://gerrit.asterisk.org/#/c/2293/

Richard
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] How to control host part of From: field content from the dialplan

2016-03-04 Thread Olivier
Hello,

I've read SIP Connect 2.0 draft lately.

It mentions specific use if either of the following values is present in
the From: field of an INVITE message.
The values are:
sip:unavailable@unkown.invalid
sip:anonymous@anonymous.invalid

I'm using Asterisk 13 and PJSIP.
Which dialplan function can I use if I want to send an outbound SIP call
with a From field matching the above values ?

I've tried with :
Set(CALLERID(num)=unavailable@unkown.invalid)

and got:
From: "Bob" ;tag=d74792e3-f646-4dd9-90fe-e4dc62ea728d

Regards
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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