[Serusers] caller-id with raius using sip-rpid

Steve Dolloff sdolloff at noc.dls.net
Fri Oct 3 23:05:24 CEST 2003


Calling from one ata to another, proxied and registered through ser,
here is my ngrep port 5060 output.  Remote-party-id is being set but not
the call-id.  

U 219.242.10.153:5060 -> 226.145.234.80:5060
  INVITE sip:256 at 226.145.234.80:5060;user=phone;transport=udp
SIP/2.0..Max-Fo
  rwards: 10..Record-Route:
<sip:256 at 219.242.10.153;ftag=2441840520;lr=on>..V
  ia: SIP/2.0/UDP 219.242.10.153;branch=z9hG4bK41f3.9e2c3976.0..Via:
SIP/2.0/
  UDP 226.145.234.113:5060;rport=5060..From:
sip:test at voip2.test.net;tag=24418
  40520..To: <sip:256 at voip2.test.net;user=phone>..Call-ID:
2303820380 at 226.145.
  234.113..CSeq: 2 INVITE..Contact:
<sip:test at 226.145.234.113:5060;transport=
  udp>..User-Agent: Cisco ATA 186  v2.16.2 ata18x
(030909a)..Authorization: D
  igest
username="test",realm="voip2.test.net",nonce="3f7de542de99d4e832372e6b
 
812a73562d346e6f",uri="sip:256 at voip2.test.net",response="1a4552ce6c65333
439b
  6a97672f415a5"..Expires: 300..Content-Length: 271..Content-Type:
applicatio
  n/sdp..Remote-Party-ID:
222;party=calling;id-type=subscriber;screen=no....v
  =0..o=test 5648 5648 IN IP4 226.145.234.113..s=ATA186 Call..c=IN IP4
226.14
  5.234.113..t=0 0..m=audio 16384 RTP/AVP 0 4 8 101..a=rtpmap:0
PCMU/8000/1..
  a=rtpmap:4 G723/8000/1..a=rtpmap:8 PCMA/8000/1..a=rtpmap:101
telephone-even
  t/8000..a=fmtp:101 0-15..a=direction:active..
#
U 226.145.234.80:5060 -> 219.242.10.153:5060
  SIP/2.0 100 Trying..Via: SIP/2.0/UDP
219.242.10.153;branch=z9hG4bK41f3.9e2c
  3976.0..Via: SIP/2.0/UDP 226.145.234.113:5060;rport=5060..From:
sip:test at vo
  ip2.test.net;tag=2441840520..To:
<sip:256 at voip2.test.net;user=phone>;tag=2077
  559661..Call-ID: 2303820380 at 226.145.234.113..CSeq: 2 INVITE..Server:
Cisco
  ATA 186  v2.16.2 ata18x (030909a)..Content-Length: 0....


Subject: Re: [Serusers] caller-id with raius using sip-rpid

Is there any Remote-Party-ID header field in outgoing INVITE ? If so
then your gateway/whatever ignores it.

 Jan.

On 02-10 15:18, Steve Dolloff wrote:
> Any phone that supports caller-id.  But I haven't gotten to work.  I'm
> seeing the username instead.  
> 
> 
> Subject: RE: [Serusers] caller-id with raius using sip-rpid
> 
> Which phone device should I use to see caller ID
> information when using the ATA186?
> 
> Alejandro
> 
>  --- Steve Dolloff <sdolloff at noc.test.net> escreveu: >
> At the top of the config I have the following
> > statement....
> > 
> >         if (method=="INVITE") {
> >                 record_route();
> >                 if (!radius_www_authorize("")) {
> >                         log(1,"radius auth
> > failure");
> >                        
> > www_challenge("voip2.test.net","0");
> >                         break;
> >                 };
> >                 append_rpid_hf();
> > 	   };
> > 
> > If I call a phone with caller-id and my username is
> > 256, it shows 256 on
> > the phone, if I call with a username of test, it
> > shows 4534 on the
> > handset even though I have the sip-rpid set to 222.
> > 
> > Stephen
> > 
> > 
> > Subject: Re: [Serusers] caller-id with raius using
> > sip-rpid
> > 
> > Retrieving caller-id when users register doesn't
> > work because REGISTER
> > messages are processed by the server and the server
> > generates a reply
> > only.
> > 
> > What you need is to insert Remote-Party-ID header
> > field into INVITE
> > message, to make it work you must authenticate also
> > INVITE messages.
> > My guess is that you do not authenticate INVITE
> > messages and therefore
> > there is nothing append_rpid_hf can add.
> > 
> >   Jan.
> > 
> > On 02-10 11:35, Steve Dolloff wrote:
> > > I want to retrieve the caller-id of a user from
> > radius when they
> > > register and use it when I redirect an invite
> > request to the voicemail
> > > system so that the voicemail system can route the
> > call based on
> > > caller-id.  I also want to be able to send it to
> > the sip gateway when
> > I
> > > am routing calls to the pstn.
> > > 
> > > I have this in my config currently and it doesn't
> > appear to set the
> > > caller-id in the invite message.
> > > 
> > >
> > rewritehostport("219.242.10.153:5061");
> > >                                 append_rpid_hf();
> > >                                 t_relay();
> > > 
> > > 
> > > Subject: Re: [Serusers] caller-id with raius using
> > sip-rpid
> > > 
> > > append_rpid_hf has no parameters. Version with 2
> > parameters is in
> > > unstable branch in the CVS only. What exactly do
> > you want to do ?
> > > 
> > >   Jan.
> > > 
> > > On 02-10 11:26, Steve Dolloff wrote:
> > > > I found this example in a previous Serusers
> > message.  
> > > > 
> > > > append_rpid_hf("<sip:+",
> > > >  
> > > >
> > >
> >
>
"@zettou.net>;party=calling;id-type=subscriber;privacy=off;screen=yes");
> > > > 
> > > > I tried calling append_rpid_hf();, but it does
> > nothing.
> > > > 
> > > > I also tried
> > > >
> > >
> >
>
append_rpid_hf("party=calling;id-type=subscriber;privacy=off;screen=yes"
> > > > );  but I get an unknown command presumably
> > because I am not using
> > the
> > > > right number of parameters.
> > > > 
> > > > I only want to modify the calling-id info.
> > > > 
> > > > Can anyone provide an example?
> > > > 
> > > > -----Original Message-----
> > > > From: Jan Janak [mailto:jan at iptel.org] 
> > > > Sent: Thursday, October 02, 2003 11:09 AM
> > > > To: Steve Dolloff
> > > > Cc: serusers at lists.iptel.org
> > > > Subject: Re: [Serusers] caller-id with raius
> > using sip-rpid
> > > > 
> > > > If you want to add Remote-Party-ID header field
> > then you have to
> > call
> > > > append_rpid_hf function in your script.
> > > > 
> > > >   Jan.
> > > > 
> > > > On 02-10 11:07, Steve Dolloff wrote:
> > > > > OK, I am setting up a Voicemail system (using
> > asterisk) and I am
> > > > > currently doing a rewritehostport(ip:port) and
> > then trelay() to
> > send
> > > > it
> > > > > to the voicemail system if an invite fails.
> > > > > 
> > > > > Should I change something? See my ser.cfg and
> > output from the call
> > > to
> > > > > the vm.
> > > > > 
> > > > > Here is the code from ser.cfg
> > > > > 
> > > > >
> > > > rewritehostport("219.242.10.153:5061");
> > > > >                                 t_relay();
> > > > > 
> > > > > Here is the sip info from asterisk.
> > > > > 
> > > > >  INVITE sip:200 at 219.242.10.153:5061;user=phone
> > SIP/2.0
> > > > > Max-Forwards: 10
> > > > > Record-Route:
> > <sip:200 at 219.242.10.153;ftag=2236658534;lr=on>
> > > > > Via: SIP/2.0/UDP
> > 219.242.10.153;branch=z9hG4bK13de.31901234.0
> > > > > Via: SIP/2.0/UDP
> > 226.145.234.113:5060;rport=5060
> > > > > From: sip:test at voip2.test.net;tag=2236658534
> > > > > To: <sip:200 at voip2.test.net;user=phone>
> > > > > Call-ID: 2218108971 at 226.145.234.113
> > > > > CSeq: 1 INVITE
> > > > > Contact:
> > <sip:test at 226.145.234.113:5060;transport=udp>
> > > > > User-Agent: Cisco ATA 186  v2.16.2 ata18x
> > (030909a)
> > > > > Expires: 300
> > > > > Content-Length: 271
> > > > > Content-Type: application/sdp
> > > > > 
> > > > > 
> > > > > 
> > > > > Subject: Re: [Serusers] caller-id with raius
> > using sip-rpid
> > > > > 
> > > > > Remote-Party-ID header field is inserted into
> > forwarded requests,
> > > not
> > > > > responses.
> > > > > 
> > > > >  Jan.
> > > > > 
> > > > > On 02-10 10:53, Steve Dolloff wrote:
> > > > > > Ser doesn't appear to be passing the
> > Caller-id to the ata at
> > auth
> > > or
> > > > I
> > > > > > am doing something wrong.  Can anyone point
> > me in the right
> > > > direction?
> > > > > > 
> > > > > > Thanks,
> > > > > > 
> > > > > > Stephen
> > > > > > 
> > > > > > I have the following entry in my freeradius
> > users file.
> > > > > > 
> > > > > > test at voip2.test.net Auth-Type := Digest,
> > User-Password == "test"
> > > > > >         Reply-Message = "Hello, test with
> > digest", Sip-Rpid =
> > > > > > "8472222222"
> > > > > > 
> > > > > > When I run a radclient test I get the
> > correct info..
> > > > > > 
> > > > > > radclient -f digest.test 219.242.10.153:1812
> > auth testing
> > > > > > Received response ID 134, code 2, length =
> > 57
> > 
> === message truncated === 
> 
> Yahoo! Mail - o melhor webmail do Brasil
> http://mail.yahoo.com.br




More information about the sr-users mailing list