[asterisk-users] Remote-Party-ID party=called

Roger Schreiter roger at planinternet.de
Mon Jul 12 08:28:46 CDT 2010


Hello,

escape the semicolons with a backslash! At least in astersik-1.6.X
this works fine.

I.e. replace in the SIP-Header-command all ; by \;

Regards,
Roger.


Jonas Kellens schrieb:
> Hello list,
> 
> using Asterisk 1.4.30.
> 
> I want to set the SIP-header Remote-Party-ID to display the name of the
> calling party on my phone in stead of the number.
> 
> This is the dialplan :
> 
> exten => 10,1,NoOp()
> exten => 10,n,SIPAddHeader(Remote-Party-ID: "eric"
> <sip:10 at 192.168.1.150>;party=called )
> exten => 10,n,Dial(SIP/test2)
> 
> This is what the CLI shows :
> 
> /[Jul 12 14:56:19]     -- Executing [10 at from-TEST:1]
> NoOp("SIP/test6-00000094", "") in new stack
> [Jul 12 14:56:19]     -- Executing [10 at from-TEST:2]
> SIPAddHeader("SIP/test6-00000094", "Remote-Party-ID: "eric"
> <sip:10 at 192.168.1.150>") in new stack
> [Jul 12 14:56:19]     -- Executing [10 at from-TEST:3]
> Dial("SIP/test6-00000094", "SIP/test2") in new stack/
> 
> SIP debug :
> 
> /asterisk*CLI> sip set debug peer test6
> SIP Debugging Enabled for IP: 192.168.1.104:5063
> [Jul 12 15:02:42]
> <--- SIP read from 192.168.1.104:5063 --->
> INVITE sip:10 at 192.168.1.150 SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.104:5063;branch=z9hG4bK-fe158095
> From: "test 6" <sip:test6 at 192.168.1.150>;tag=adbbedf0959298ddo3
> To: <sip:10 at 192.168.1.150>
> *Remote-Party-ID: "test 6"
> <sip:test6 at 192.168.1.150>;screen=yes;party=calling*
> Call-ID: fb31bee7-94a6a451 at 192.168.1.104
> CSeq: 101 INVITE
> Max-Forwards: 70
> Contact: "test 6" <sip:test6 at 192.168.1.104:5063>
> Expires: 240
> User-Agent: Linksys/SPA941-5.1.8
> Content-Length: 397
> Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
> Supported: replaces
> Content-Type: application/sdp/
> 
> 
> In all the other SIP-messages there is no trace of the Remote-Party-ID
> header...
> 
> Shouldn't there be a /*Remote-Party-ID: "eric"
> <sip:10 at 192.168.1.150>;party=called */somewhere ??
> 
> 
> Jonas.
> 


-- 
Roger Schreiter
Spindelberg 11
D-74354 Besigheim
Tel.: +49 7143 36476



More information about the asterisk-users mailing list