Hi
I want to record the reason for the end of the call.
Was it a fail or a normal finish.
I completing cdr recording in dialog end so this is where I wan to get the
following details
1). I want tot get reason value
After the INVITE completes successfully the codes are sent in the Reason: header of the
BYE transaction.
or these
2).
Keyword SIP Description
noroute 404 No route to destination could be found
noconn 503 Could not connect to outgoing channel or network
noauth 401 Caller is not authenticated
nomedia 415 Failed to negotiate media channel
noanswer 487 Called party did not answer
busy 486 Called party is busy
congestion 480 Temporary network congestion
offline 404 Called party or network is offline
rejected 406 Call rejected by called party or network
forbidden 403 Call is not authorized
incomplete 484 Called party number or address is incomplete
looping 483 Call loop detected
failure 500 Generic local server or interoperation failureDuring the call
timeout BYE 102 Call duration exceeded limit
nocall 481 100 Referenced call could not be found on server
pending 491 111 Another operation is in progress on the same call
23.01.2018, 08:26, "Daniel-Constantin Mierla" <miconda(a)gmail.com>om>:
Hello,
event_route[dialog:end] is executed when a BYE is received by Kamailio
or a BYE is generated by Kamailio because the dialog lifetime elapsed.
There is no SIP response at that moment.
Maybe you can explain what you need to achieve and then see if that's
possible to do somehow
Cheers,
Daniel
On 21.01.18 16:24, voipspace voipspace wrote:
within event_route[dialog:end]
How do I find out SIP reply reason phrase and SIP reply code
$rr
$rs
and
$T_rpl($rs)
$T_rpl($rr)
are null
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - March 5-7, 2018, Berlin -
www.asipto.com
Kamailio World Conference - May 14-16, 2018 -
www.kamailioworld.com