Hi,

I am trying to capture "Server" header in a 200 OK reply message.
My idea was to use Dail(SIP/u...@domain,30,M(GetOtherPartyInfo)),
and inside of GetOtherPartyInfo macro use SIP_HEADER function.

For example:

[default]
exten => _X.,1,Dial(SIP/u...@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 [...@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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to