Re: [SR-Users] Register a CISCO IP phone

2011-03-11 Thread Dani Popa

CISCO SPA 303 IP phone is under NAT? if yes, what router do you use ?


Dani

On 03/10/11 21:32, Pang, Gary (Liguang) wrote:


Dear Sir,

I have a difficulty to register a CISCO SPA 303 IP phone.

I can register a Soft phone to the SER server by setting the Hold IP 
address, Proxy, account number..


But it is not working with the CISCO phone.

Can you advice?

Thanks,

Gary


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Call subscriber online

2011-03-11 Thread Stefano Larosa
Hi,

 

I'm new on Kamailio 3.0

 

This is the scenario I would like to build:

 

 1 Subscriber A - 2 kamailio - 3 asterisk - 4 Kamailio - 5 Subscriber B

 

Everything is working fine until the last step

 

This is the code that manage the call from asterisk to kamailio

 

if(is_method(INVITE)  (src_ip==80.169.xx.xx) )

{

  route(TOPROXYUSER);

}

 

And this is the code that should end the call the the subscriber

 

route[TOPROXYUSER] {

   xlog(L_NOTICE, $mi route[$rm][0] $fu -
$ru START PROCESSING MESSAGE\n);

   rewritehostport(127.0.0.1:5060);

   if (is_method(BYE|CANCEL)) { 

route(FAIL_ONE);

   } else if (is_method(INVITE)){ 

   route(RELAY);

   }; 

   exit;  

}

 

 

Thank you,

 

Stivu.

 

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to save a variable in a request and use it in next reply

2011-03-11 Thread Derrick Ding
Hi, All

Thanks for all your reply. I use Kamailio 3.0.2. Now I know contact header is: 
$ct

I have some problem when I want to modify the header. 
Eg.   
Register: UAOpenSer-SIP proxy

Contact in Register request is:
--
REGISTER SIP:10.30.105.30:5060 SIP/2.0
Contact: M1080 
sip:1080@10.30.102.127:5060;+sip.instance=urn:uuid:--18000-00085D215A5A;expires=1800;reg-id=0
---

However, when SIPproxy reply the 200 OK, contact changed because it doesn't 
support sip.instance and reg-id:
---
SIP/2.0 200 OK
Contact: sip:1080@10.30.102.127:5060;expires=1800;
---

My question is when forward 200 OK to UA, how the OpenSer use the original 
contact to replace the contact in the 200 OK from Sip Proxy.

I read textops, but I still don't have an idea for this issue.

Your reply is appreciated!

Derrick




-Original Message-
From: Carsten Bock [mailto:cars...@ng-voice.com] 
Sent: Friday, March 11, 2011 9:22 AM
To: Derrick Ding
Cc: Asgaroth; Alex Balashov; sr-users@lists.sip-router.org
Subject: Re: [SR-Users] pseudo variables available in on_reply route(where can 
I find all variables stand for)

Hi,

see:
http://www.kamailio.org/dokuwiki/doku.php
- Pseudovariables

Carsten

2011/3/11 Derrick Ding dd...@aastra.com:
 Hi, All

 I started using Kamailio this week.

 Could any one tell me where I can find all variables(eg, $ru, $du, $rd,
 $rp, etc) stand for.

 Thanks a lot!

 Derrick



 -Original Message-
 From: sr-users-boun...@lists.sip-router.org
 [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Asgaroth
 Sent: Thursday, March 10, 2011 10:04 PM
 To: Alex Balashov
 Cc: sr-users@lists.sip-router.org
 Subject: Re: [SR-Users] pseudo variables available in on_reply route

 Hi Alex,

 On 11/03/2011 02:37, Alex Balashov wrote:
 Are you actually talking about the destination set, or the domain part
 of the request uri?  If the latter, check out $rd and $rp.

 I'm looking for the domain part of the destination uri. I have the
 following reply route defined:

 onreply_route[REPLY_ONE] {
        xlog(REPLY_ONE : $rm : R-URI=$ru\n);
        xlog(REPLY_ONE : $rm : D-URI=$du\n);
        xlog(REPLY_ONE : $rm : Request Domain=$rd\n);
        xlog(REPLY_ONE : $rm : Request Port=$rp\n);
        xlog(REPLY_ONE : $rm : Destination Domain=$dd\n);
 }

 The output I get from the above is as follows:

 [17344]: ERROR: script: REPLY_ONE : INVITE : R-URI=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : D-URI=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : Request Domain=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : Request Port=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : Destination Domain=null

 Do I need to enable an option somewhere to be able to access these
 variables in onreply route?

 Thanks


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 
Carsten Bock
http://www.ng-voice.com
mailto:cars...@ng-voice.com

Schomburgstr. 80
22767 Hamburg
Germany

Mobile +49 179 2021244
Office +49 40 34927219
Fax +49 40 34927220

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] pseudo variables available in on_reply route(where can I find all variables stand for)

2011-03-11 Thread Carsten Bock
Hi,

see:
http://www.kamailio.org/dokuwiki/doku.php
- Pseudovariables

Carsten

2011/3/11 Derrick Ding dd...@aastra.com:
 Hi, All

 I started using Kamailio this week.

 Could any one tell me where I can find all variables(eg, $ru, $du, $rd,
 $rp, etc) stand for.

 Thanks a lot!

 Derrick



 -Original Message-
 From: sr-users-boun...@lists.sip-router.org
 [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Asgaroth
 Sent: Thursday, March 10, 2011 10:04 PM
 To: Alex Balashov
 Cc: sr-users@lists.sip-router.org
 Subject: Re: [SR-Users] pseudo variables available in on_reply route

 Hi Alex,

 On 11/03/2011 02:37, Alex Balashov wrote:
 Are you actually talking about the destination set, or the domain part
 of the request uri?  If the latter, check out $rd and $rp.

 I'm looking for the domain part of the destination uri. I have the
 following reply route defined:

 onreply_route[REPLY_ONE] {
        xlog(REPLY_ONE : $rm : R-URI=$ru\n);
        xlog(REPLY_ONE : $rm : D-URI=$du\n);
        xlog(REPLY_ONE : $rm : Request Domain=$rd\n);
        xlog(REPLY_ONE : $rm : Request Port=$rp\n);
        xlog(REPLY_ONE : $rm : Destination Domain=$dd\n);
 }

 The output I get from the above is as follows:

 [17344]: ERROR: script: REPLY_ONE : INVITE : R-URI=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : D-URI=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : Request Domain=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : Request Port=null
 [17344]: ERROR: script: REPLY_ONE : INVITE : Destination Domain=null

 Do I need to enable an option somewhere to be able to access these
 variables in onreply route?

 Thanks


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




-- 
Carsten Bock
http://www.ng-voice.com
mailto:cars...@ng-voice.com

Schomburgstr. 80
22767 Hamburg
Germany

Mobile +49 179 2021244
Office +49 40 34927219
Fax +49 40 34927220

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] acc failed_transaction_flag and t_newtran()

2011-03-11 Thread Juha Heinanen
in order to get invite requests accounted, it seems that accounting
flags need to be set before t_newtran() is called.

is there any way to unset the accounting flags after calling
t_newtran()?  for example, i would not like to account invites that
result to 407 proxy authentication required.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] acc failed_transaction_flag and t_newtran()

2011-03-11 Thread Juha Heinanen
Juha Heinanen writes:

 is there any way to unset the accounting flags after calling
 t_newtran()?  for example, i would not like to account invites that
 result to 407 proxy authentication required.

just to clarify, i added statement

resetflag(ACC_FAILED_FLAG);

just before proxy_challenge() call, but it did not have any effect. i
guess the reason is that transaction was already created.

if failed transaction reporting cannot be undone after transaction has
been created, then another possibility (although not as attractive) would
be to add a filter param to accounting module that would list which
response codes =300 script writer is not interested in.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users