Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Retaining P-Asserted Info


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
symack at gmail.com
Guest





PostPosted: Sat Feb 15, 2014 9:28 pm    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

Hello Everyone,

Our switch is sending P-Asserted info to asterisk however the information
is getting removed when asterisk forks the call. Is it possible to have asterisk
retain the P-Asserted on the leg. This is quite important for valid
functionality of our
network.

Tried setting `sendrpid = yes` and still same problem. We really don't want to
have to `SipAddHeader` as it is already being formed by our switch.

Thanks in Advance,

Nick

--
_____________________________________________________________________
-- 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
Back to top
universe at truemetal.org
Guest





PostPosted: Sun Feb 16, 2014 3:03 pm    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

Am 16.02.2014 03:30, schrieb Nick Cameo:
Quote:
Tried setting `sendrpid = yes` and still same problem. We really don't want to
have to `SipAddHeader` as it is already being formed by our switch.

From http://www.voip-info.org/wiki/view/Asterisk+SIP+trustrpid :

-snip-

P-Asserted-Identity
Asterisk does nothing when it receives a P-Asserted-Identity header. It
ignores it totally no matter what settings you use for "trustrpid" or
"sendrpid". It does not copy it from an inbound call leg to an outbound
call leg for a bridged SIP-to-SIP call.

-snip-

I use SIPAddHeader to achieve what you described.

For example, I have a DID provider who only sends P-Asserted-Identity,
and at the same time a customer who needs that data as Remote-Party-ID,
so I'm doing this to send it to him:

exten => _X.,n,Set(RPID=${SIP_HEADER(P-Asserted-Identity)})
exten => _X.,n,Set(RPID=${CUT(RPID,\+,2-)})
exten => _X.,n,Set(RPID=${CUT(RPID,@,-1)})
exten => _X.,n,SIPAddHeader(Remote-Party-ID: "${RPID}"
<sip:${RPID}@my-ip-address>\;privacy=off\;screen=no)



--
_____________________________________________________________________
-- 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
Back to top
symack at gmail.com
Guest





PostPosted: Sun Feb 16, 2014 3:26 pm    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

Hello Markus,

Thank you so much for your response. Our switch is already generating
the needed P-Asserted header:

P-Asserted-Identity: "John Doe"
<sip:14167493471@toronto.location.com>; user=phone; nat=yes.

I really did not want to have to rebuild it using `SIPAddHeader`
however, if I have no choice,
can someone please provide an extension rule that will include the
exiting inbound leg line above in the outbound leg.

Kind Regards,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
ish at pack-net.co.uk
Guest





PostPosted: Mon Feb 17, 2014 4:07 am    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

HI

Have you tried:


sendrpid = pai                 ; Use the "P-Asserted-Identity" header
                                ; to send the identity of the remote party





in the sip.conf?


Regards


Ish





On 16 February 2014 20:29, Nick Cameo <symack@gmail.com (symack@gmail.com)> wrote:
Quote:
Hello Markus,

Thank you so much for your response. Our switch is already generating
the needed P-Asserted header:

P-Asserted-Identity: "John Doe"
<sip:14167493471@toronto.location.com ([email]sip%3A14167493471@toronto.location.com[/email])>; user=phone; nat=yes.

I really did not want to have to rebuild it using `SIPAddHeader`
however, if I have no choice,
can someone please provide an extension rule that will include the
exiting inbound leg line above in the outbound leg.

Kind Regards,

Nick.

--
_____________________________________________________________________
-- 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






--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
symack at gmail.com
Guest





PostPosted: Mon Feb 17, 2014 5:28 am    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

Hello Ishfaq,

I just tried it and it did create a P-Asserted header however it
contains the extension
of the asterisk peer not what was passed by our switch. From the
previous example:

P-Asserted-Identity: "222" <sip:222@192.168.2.10> (which is asterisk
peer extension and not)
P-Asserted-Identity: "John Doe"
<sip:14167493471@toronto.location.com>; user=phone; nat=yes. (which is
being passed by the call leg)

Is there a flag that retains the rpid from the call leg?

Kind Regards,

Nick

--
_____________________________________________________________________
-- 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
Back to top
mjordan at digium.com
Guest





PostPosted: Mon Feb 17, 2014 7:13 am    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

On Mon, Feb 17, 2014 at 4:29 AM, Nick Cameo <symack@gmail.com> wrote:
Quote:
Hello Ishfaq,

I just tried it and it did create a P-Asserted header however it
contains the extension
of the asterisk peer not what was passed by our switch. From the
previous example:

P-Asserted-Identity: "222" <sip:222@192.168.2.10> (which is asterisk
peer extension and not)
P-Asserted-Identity: "John Doe"
<sip:14167493471@toronto.location.com>; user=phone; nat=yes. (which is
being passed by the call leg)

Is there a flag that retains the rpid from the call leg?


No. Asterisk is a back to back user agent, not a proxy. Overriding the
settings of a peer with the peer that it is bridged with is typically
contrary to Asterisk's nature. If you want to copy information from
one SIP channel to another, you should do as Markus suggested.

Matt

--
_____________________________________________________________________
-- 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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Mon Feb 17, 2014 11:05 am    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

Asterisk is a B2BUA -- think of it as two calls, one inbound call from your switch to Asterisk and one for outbound call from Asterisk to the destination.

Using SIPAddHeader or similar is the proper way to copy headers from the inbound call to the outbound call in Asterisk.

-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nick Cameo
Sent: Sunday, February 16, 2014 3:29 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Retaining P-Asserted Info

Hello Markus,

Thank you so much for your response. Our switch is already generating the needed P-Asserted header:

P-Asserted-Identity: "John Doe"
<sip:14167493471@toronto.location.com>; user=phone; nat=yes.

I really did not want to have to rebuild it using `SIPAddHeader` however, if I have no choice, can someone please provide an extension rule that will include the exiting inbound leg line above in the outbound leg.

Kind Regards,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
symack at gmail.com
Guest





PostPosted: Mon Feb 17, 2014 11:14 am    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

Hey Guys, I really appreciate this and I apologize for asking however,
we do not have any way to test in advance outside of our live
environment. Can someone kindly provide a working extension rule that
will retain the following P-Asserted info that is existent from the
inbound-leg to the outbound-leg using `SIPAddHeader`:

P-Asserted-Identity: "John Doe"
<sip:14167493471@toronto.location.com>; user=phone; nat=yes.


Forgive the noob,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Mon Feb 17, 2014 11:26 am    Post subject: [asterisk-users] Retaining P-Asserted Info Reply with quote

How about: SipAddHeader(${SIP_HEADER(P-Asserted-Identity)})

Might have some issues with the ; character being see as start of comment.

-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Nick Cameo
Sent: Monday, February 17, 2014 11:17 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Retaining P-Asserted Info

Hey Guys, I really appreciate this and I apologize for asking however, we do not have any way to test in advance outside of our live environment. Can someone kindly provide a working extension rule that will retain the following P-Asserted info that is existent from the inbound-leg to the outbound-leg using `SIPAddHeader`:

P-Asserted-Identity: "John Doe"
<sip:14167493471@toronto.location.com>; user=phone; nat=yes.


Forgive the noob,

Nick.

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services