[asterisk-users] getting real sip status after dial

Eric Wieling ewieling at nyigc.com
Sat Jun 9 14:02:01 CDT 2018


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/



More information about the asterisk-users mailing list