Chris Maciejewski
2009-May-17 10:43 UTC
[asterisk-users] Capture "Server" header in SIP reply.
Hi, I am trying to capture "Server" header in a 200 OK reply message. My idea was to use Dail(SIP/user at domain,30,M(GetOtherPartyInfo)), and inside of GetOtherPartyInfo macro use SIP_HEADER function. For example: [default] exten => _X.,1,Dial(SIP/user at domain,30,M(GetOtherPartyInfo)) exten => _X.,n,Hangup() [macro-GetOtherPartyInfo] exten => s,1,NoOp(SIP Server: ${SIP_HEADER(Server,1)}) unfortunately the above doesn't seem to work: -- Executing [s at macro-GetOtherPartyInfo:1] NoOp("SIP/dev-sip.domain.net-08dbb610", "SIP src_server: ") in new stack Is there any way to capture SIP headers from reply messages generated by a called party? Regards, Chris
David Backeberg
2009-May-17 12:24 UTC
[asterisk-users] Capture "Server" header in SIP reply.
On Sun, May 17, 2009 at 6:43 AM, Chris Maciejewski <chris at wima.co.uk> wrote:> I am trying to capture "Server" header in a 200 OK reply message. > My idea was to use Dail(SIP/user at domain,30,M(GetOtherPartyInfo)), > and inside of GetOtherPartyInfo macro use SIP_HEADER function. > unfortunately the above doesn't seem to work: > Is there any way to capture SIP headers from reply messages generated > by a called party?http://www.voip-info.org/wiki/view/Asterisk+func+sip_header You might prefer the SIP_HEADER(FROM) field.
Maybe Matching Threads
- Dial with r option doesn't use 'ring' tone as defined in indications.conf
- MeetMe not working with GSM codec?
- ConfBridge - Failed to find a bridge technology to satisfy capabilities
- How to send "404 Not found" SIP reply?
- X-Asterisk-HangupCause - how to disable this?