Khalil Khamlichi
2018-Jun-09 17:08 UTC
[asterisk-users] getting real sip status after dial
Hi, Is there any way I can get exact sip status from pjsip after a dial ? or all we can get is asterisk hangup causes ? Thanks in advance. KKh
Khalil Khamlichi
2018-Jun-09 18:01 UTC
[asterisk-users] getting real sip status after dial
It seems very weird to me that we cannot access sip code of a call from pjsip which information is actually returned from the provider, so it is available to asterisk, why does asterisk hide it ? On Sat, Jun 9, 2018 at 5:08 PM Khalil Khamlichi <khamlichi.khalil at gmail.com> wrote:> > Hi, > > Is there any way I can get exact sip status from pjsip after a dial ? > or all we can > get is asterisk hangup causes ? > > Thanks in advance. > > KKh
I think HANGUPCAUSE is channel agnostic. See: core show function HANGUPCAUSE Some thing like this IIRC: Set(my_cause=${HANGUPCAUSE(${CHANNEL(name)},tech)}) Remember the incoming leg of the call and the outgoing leg of the call are different channels. Make sure you are giving HANGUPCAUSE the correct channel. On 06/09/2018 02:01 PM, Khalil Khamlichi wrote:> It seems very weird to me that we cannot access sip code of a call > from pjsip which information is actually returned from the provider, > so it is available to asterisk, why does asterisk hide it ? > On Sat, Jun 9, 2018 at 5:08 PM Khalil Khamlichi > <khamlichi.khalil at gmail.com> wrote: >> >> Hi, >> >> Is there any way I can get exact sip status from pjsip after a dial ? >> or all we can >> get is asterisk hangup causes ? >> >> Thanks in advance. >> >> KKh >-- http://help.nyigc.net/
I think HANGUPCAUSE is channel agnostic. See: core show function HANGUPCAUSE Some thing like this IIRC: Set(my_cause=${HANGUPCAUSE(${CHANNEL(name)},tech)}) Remember the incoming leg of the call and the outgoing leg of the call are different channels. Make sure you are giving HANGUPCAUSE the correct channel. On 06/09/2018 02:01 PM, Khalil Khamlichi wrote:> It seems very weird to me that we cannot access sip code of a call > from pjsip which information is actually returned from the provider, > so it is available to asterisk, why does asterisk hide it ? > On Sat, Jun 9, 2018 at 5:08 PM Khalil Khamlichi > <khamlichi.khalil at gmail.com> wrote: >> >> Hi, >> >> Is there any way I can get exact sip status from pjsip after a dial ? >> or all we can >> get is asterisk hangup causes ? >> >> Thanks in advance. >> >> KKh >-- http://help.nyigc.net/