Le 17/09/2015 12:37, Дорофеев Сергей a écrit :
Hello list!
Hello
Sorry for kinda dumb question, I guess, but I have too little time to
research it by myself.
I have a SIP packet, which looks like this:
<--- SIP read from UDP:10.186.0.38:5060 --->
INVITE sip:[email protected]:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.186.0.38:5060;branch=z9hG4bKh4utm43008vheqk093b0.1
Call-ID: ba9vp4zsbbsfi0vagdafg0vpzpp0z9wh@SoftX3000
From: <sip:[email protected];user=phone>;tag=zwbzfehp-CC-22
To: <sip:[email protected]:5060;user=phone>
CSeq: 1 INVITE
Contact: <sip:[email protected]:5060;transport=udp>
Min-SE: 90
Session-Expires: 300
Allow:
INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
User-Agent: Huawei SoftX3000 V300R011
Diversion:
<sip:[email protected];user=phone>;reason=unconditional;counter=1
Supported: 100rel,timer
Max-Forwards: 69
Content-Length: 338
Content-Type: application/sdp
Priority: urgent
I need to use info from fields “To:” and “Contact:” later in my
dialplan. I belive, I have to do something like “exten =>
_/X.,1,Set(VAR=${WHAT/_SHOULD_I_TYPE_HERE?})”
Sample:
exten => s,1,Set(__DIALEDNUMBER=${SIP_HEADER(TO):5})
exten => s,n,Set(__DIALEDNUMBER=${CUT(DIALEDNUMBER,@,1)})
...
Regards
--
Daniel
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users