In fact, callerid(name) works and callerid(num) doesn't work at all (it
seems)
example :
exten => _1.,1,Set(CALLERID(num)=123)
exten => _1.,n,Set(CALLERID(name)=aaa)
exten => _1.,n,Noop(calleridnum = ${CALLERID(num)})
exten => _1.,n,Noop(calleridname = ${CALLERID(name)})
exten => _1.,n,Dial(SIP/${EXTEN},30,o)
exten => _1.,n,SetLanguage(fr)
exten => _1.,n,VoiceMail(${EXTEN})
exten => i,n,Hangup
-- Executing Set("SIP/103-0815fcd8", "CALLERID(num)=123") in new stack
-- Executing Set("SIP/103-0815fcd8", "CALLERID(name)=aaa") in new stack
-- Executing NoOp("SIP/103-0815fcd8", "calleridnum = 123") in new stack
-- Executing NoOp("SIP/103-0815fcd8", "calleridname = aaa") in new stack
-- Executing Dial("SIP/103-0815fcd8", "SIP/101|30|o") in new stack
-- Called 101
in this case the CALLED number is 101 and the sip message is :
INVITE sip:101@192.168.2.142:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.127:5060;branch=z9hG4bK00041729;rport
From: "Name" <sip:101@192.168.2.127>;tag=as518b8a4f
To: <sip:101@192.168.2.142:5060>
Contact: <sip:101@192.168.2.127>
Call-ID: 10173f1b478e67681ce2b445025f507a@192.168.2.127
CSeq: 102 INVITE
User-Agent: YAP (Yet Another Pbx) V0.1
Max-Forwards: 70
Date: Tue, 13 Feb 2007 12:18:41 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 310
v=0
o=root 1506 1506 IN IP4 192.168.2.127
s=session
c=IN IP4 192.168.2.127
t=0 0
m=audio 13284 RTP/AVP 18 3 8 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
olivier.taylor a écrit :
> hello,
>
> Using astlinux 0.4.4
>
> when i do :
>
> exten => _X.,n,Set(CALLERID(num)=12345)
> exten => _X.,n,Dial(SIP/101,10,tf)
>
> callerid is always set to 101
>
> any idea?
>
> Thanks,
>
> Olivier
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Astlinux-users mailing list
> Ast...@li...
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to pa...@kr....
>
>
|