Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] RES: Can I use PJSIP_HEADER to read the SIP 183 message header?


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





PostPosted: Fri Jul 10, 2015 1:37 pm    Post subject: [asterisk-users] RES: Can I use PJSIP_HEADER to read the SIP Reply with quote

Ok Mark Michelson.

Thank you very much! You answer tells me that I was in the wrong path trying to access information from SIP 183 message.

I need to find a way to let the callee pass information/data to the caller, even before accepting the call. That is, send data during the ringing time. And in my case, there will be more than one callee ringing at same time. As ASTERISK will not forward each SIP 183 message to the caller, I intend to get data from callees in dialplan by some another way before the call being accepted.

1- Is there any way to do that?

2 - SIP MESSAGE, if sent by the calle, enters the dialplan?

Any hint will be very helpful!

Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9300 (Brasil)
________________________________________
De: asterisk-users-bounces@lists.digium.com [asterisk-users-bounces@lists.digium.com] em Nome de Mark Michelson [mmichelson@digium.com]
Enviado: sexta-feira, 10 de julho de 2015 15:14
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Assunto: Re: [asterisk-users] Can I use PJSIP_HEADER to read the SIP 183 message header?

On 07/10/2015 11:53 AM, Rodrigo Pimenta Carvalho wrote:
Quote:
Hi.

The ASTERISK wiki has a page showing the function PJSIP_HEADER(). However, it doesn't explain if such function works only over SIP INVITE messages or if it can be use, for example, to read headers from others types of SIP messages too.

So, can I use PJSIP_HEADER to read the SIP 183 message header?

Any hint will be very helpful!

Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979 (Brasil)
Unfortunately, PJSIP_HEADER() cannot be used on responses because SIP
responses do not enter the dialplan.

--
_____________________________________________________________________
-- 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
nachum.yaron at gmail.com
Guest





PostPosted: Mon Jul 20, 2015 12:53 am    Post subject: [asterisk-users] RES: Can I use PJSIP_HEADER to read the SIP Reply with quote

One way to do it is to use Transfer. This will cause the callee to send 302 redirect to the caller. The caller then will jump to the extension specified in the contact. You will have to dial again to the callee in the new extension.


This solution will increase the traffic on your asterisk and you have to be careful from loops.






‫בתאריך יום ו׳, 10 ביולי 2015 ב-21:37 מאת ‪Rodrigo Pimenta Carvalho‬‏ <‪pimenta@inatel.br (pimenta@inatel.br)‬‏>:‬

Quote:
Ok Mark Michelson.

Thank you very much! You answer tells me that I was in the wrong path trying to access information from SIP 183 message.

I need to find a way to let the callee pass information/data to the caller, even before accepting the call. That is, send data during the ringing time. And in my case, there will be more than one callee ringing at same time. As ASTERISK will not forward each SIP 183 message to the caller, I intend to get data from callees in dialplan by some another way before the call being accepted.

1- Is there any way to do that?

2 - SIP MESSAGE, if sent by the calle, enters the dialplan?

 Any hint will be very helpful!

 Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9300     (Brasil)
________________________________________
De: asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com) [asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com)] em Nome de Mark Michelson [mmichelson@digium.com (mmichelson@digium.com)]
Enviado: sexta-feira, 10 de julho de 2015 15:14
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Assunto: Re: [asterisk-users] Can I use PJSIP_HEADER to read the SIP 183 message header?

On 07/10/2015 11:53 AM, Rodrigo Pimenta Carvalho wrote:
Quote:
Hi.

The ASTERISK wiki has a page showing the function PJSIP_HEADER(). However, it doesn't explain if such function works only over SIP INVITE messages or if it can be use, for example, to read headers from others types of SIP messages too.

So, can I use PJSIP_HEADER to read the SIP 183 message header?

Any hint will be very helpful!

Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979     (Brasil)
Unfortunately, PJSIP_HEADER() cannot be used on responses because SIP
responses do not enter the dialplan.

--
_____________________________________________________________________
-- 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
pimenta at inatel.br
Guest





PostPosted: Mon Jul 20, 2015 6:28 am    Post subject: [asterisk-users] RES: Can I use PJSIP_HEADER to read the SIP Reply with quote

Ok.


Thank you!


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979 (Brasil)


De: asterisk-users-bounces@lists.digium.com <asterisk-users-bounces@lists.digium.com> em nome de Yaron Nachum <nachum.yaron@gmail.com>
Enviado: segunda-feira, 20 de julho de 2015 02:53
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Assunto: Re: [asterisk-users] RES: Can I use PJSIP_HEADER to read the SIP 183 message header?

One way to do it is to use Transfer. This will cause the callee to send 302 redirect to the caller. The caller then will jump to the extension specified in the contact. You will have to dial again to the callee in the new extension.


This solution will increase the traffic on your asterisk and you have to be careful from loops.






‫בתאריך יום ו׳, 10 ביולי 2015 ב-21:37 מאת ‪Rodrigo Pimenta Carvalho‬‏ <‪pimenta@inatel.br (pimenta@inatel.br)‬‏>:‬

Quote:
Ok Mark Michelson.

Thank you very much! You answer tells me that I was in the wrong path trying to access information from SIP 183 message.

I need to find a way to let the callee pass information/data to the caller, even before accepting the call. That is, send data during the ringing time. And in my case, there will be more than one callee ringing at same time. As ASTERISK will not forward each SIP 183 message to the caller, I intend to get data from callees in dialplan by some another way before the call being accepted.

1- Is there any way to do that?

2 - SIP MESSAGE, if sent by the calle, enters the dialplan?

Any hint will be very helpful!

Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9300 (Brasil)
________________________________________
De: asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com) [asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com)] em Nome de Mark Michelson [mmichelson@digium.com (mmichelson@digium.com)]
Enviado: sexta-feira, 10 de julho de 2015 15:14
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Assunto: Re: [asterisk-users] Can I use PJSIP_HEADER to read the SIP 183 message header?

On 07/10/2015 11:53 AM, Rodrigo Pimenta Carvalho wrote:
Quote:
Hi.

The ASTERISK wiki has a page showing the function PJSIP_HEADER(). However, it doesn't explain if such function works only over SIP INVITE messages or if it can be use, for example, to read headers from others types of SIP messages too.

So, can I use PJSIP_HEADER to read the SIP 183 message header?

Any hint will be very helpful!

Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979 (Brasil)
Unfortunately, PJSIP_HEADER() cannot be used on responses because SIP
responses do not enter the dialplan.

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