Never ever send private emails - they will be discarded, keep the
mailing list cc-ed.
Iptel org is running SIP Express Router 3.1. Take a ngrep of the traffic
and send it here, the hexa codes you send are not for humans to read,
like we are here on mailing lists. Otherwise make a tar.gz of pcap file.
SER changes content length only if it is an update to sdp (for nat
traversal), otherwise is the one set by the other phone.
Daniel
On 10/27/10 12:21 PM, t wrote:
> Thanks Daniel,
>
> fyi, the Content-Length doesn't match the actual length in the invite
> ok returned from iptel.org <http://iptel.org> (213.192.59.75), and
> the same situation also occurs from ekiga.net <http://ekiga.net>.
>
> libosip2 interprets the rfc as saying that this 'should' be correct.
> (and I buy this!).
>
> it looks like an openser (opensips?) quirk.
>
> anyway, I have put in code locally to fixup the Content-Length.
>
> Thanks,
> Tony.
>
> 73 75 62 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e sub..Content-Len
> 67 74 68 3a 20 20 20 32 30 31 0d 0a 0d 0a 76 3d gth: 201....v=
> 30 0d 0a 6f 3d 74 77 69 6e 6b 6c 65 20 31 33 33 0..o=twinkle 133
> 33 37 30 37 32 38 39 20 38 30 39 37 35 37 36 37 3707289 80975767
> 33 20 49 4e 20 49 50 34 20 31 39 32 2e 31 36 38 3 IN IP4 192.168
> 2e 32 35 34 2e 31 0d 0a 73 3d 2d 0d 0a 63 3d 49 .254.1..s=-..c=I
> 4e 20 49 50 34 20 31 39 32 2e 31 36 38 2e 32 35 N IP4 192.168.25
> 34 2e 31 0d 0a 74 3d 30 20 30 0d 0a 6d 3d 61 75 4.1..t=0 0..m=au
> 64 69 6f 20 35 30 32 32 20 52 54 50 2f 41 56 50 dio 5022 RTP/AVP
> 20 39 38 20 31 30 31 0d 0a 61 3d 72 74 70 6d 61 98 101..a=rtpma
> 70 3a 39 38 20 73 70 65 65 78 2f 31 36 30 30 30 p:98 speex/16000
> 0d 0a 61 3d 72 74 70 6d 61 70 3a 31 30 31 20 74 ..a=rtpmap:101 t
> 65 6c 65 70 68 6f 6e 65 2d 65 76 65 6e 74 2f 38 elephone-event/8
> 30 30 30 0d 0a 61 3d 66 6d 74 70 3a 31 30 31 20 000..a=fmtp:101
> 30 2d 31 35 0d 0a 0-15..
>
> On Wed, Oct 27, 2010 at 5:40 AM, Daniel-Constantin Mierla
> <miconda(a)gmail.com <mailto:miconda@gmail.com>> wrote:
>
> Hello,
>
> you claim that contact header is malformed or libosip2 has issues
> in parsing a good content header?
>
> In case of first option, can you tell what it believes is wrong.
> Your message is hard to follow since is not clear text, next time
> send only the text part.
>
> For the second option, you have to approach libosip2 support forums.
>
> Cheers,
> Daniel
>
>
> On 10/25/10 10:44 PM, t wrote:
>> Hi,
>>
>> Not sure how to provide this info (or even if anybody cares), but
>> libosip2 parser objects to incorrect (short) Content-Length from
>> iptel.org <http://iptel.org>.
>>
>> Regards,
>> Tony.
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com
>
>
--
Daniel-Constantin Mierla
http://www.asipto.com
Hi,
Not sure how to provide this info (or even if anybody cares), but libosip2
parser objects to incorrect (short) Content-Length from iptel.org.
Regards,
Tony.
hi all,
i have configure SMS module and have some error. please help to fix it.
my configure in kamailio :
modparam("sms", "modems", "nokia[d=/dev/ttyUSB0;p=0000;m=old;s=1;l=10;r=20]")
modparam("sms", "networks", "MOBIFONE[m=10]")
modparam("sms", "links", "nokia[MOBIFONE]")
if(method == "MESSAGE"){
if(has_body("text/plain")){
sms_send_msg_to_net("MOBIFONE");
}
}
but i start kamailio, log show that:
Oct 26 05:32:35 localhost /usr/local/sbin/kamailio[13594]: ERROR: sms [libsms_modem.c:282]: Modem is not registered to the network
Oct 26 05:32:35 localhost /usr/local/sbin/kamailio[13594]: WARNING: sms [libsms_getsms.c:256]: something happend with the modem -> was reinit -> let's retry
Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]: WARNING: sms [libsms_modem.c:356]: modem wants the PIN again!
Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]: WARNING: sms [libsms_modem.c:370]: re -init the modem!!
Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]: INFO: sms [libsms_modem.c:221]: init modem nokia on /dev/ttyUSB0.
Oct 26 05:32:37 localhost /usr/local/sbin/kamailio[13594]: INFO: sms [libsms_modem.c:250]: Checking if Modem is registered to the network
Oct 26 05:32:38 localhost /usr/local/sbin/kamailio[13594]: NOTICE: sms [libsms_modem.c:275]: Waiting 2 sec. before retrying
Oct 26 05:33:09 localhost last message repeated 10 times
Oct 26 05:33:38 localhost last message repeated 9 times
Oct 26 05:33:40 localhost /usr/local/sbin/kamailio[13594]: ERROR: sms [libsms_modem.c:282]: Modem is not registered to the network
Oct 26 05:33:40 localhost /usr/local/sbin/kamailio[13594]: WARNING: sms [libsms_getsms.c:256]: something happend with the modem -> was reinit -> let's retry
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: WARNING: sms [libsms_modem.c:356]: modem wants the PIN again!
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: WARNING: sms [libsms_modem.c:370]: re -init the modem!!
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: INFO: sms [libsms_modem.c:221]: init modem nokia on /dev/ttyUSB0.
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: INFO: sms [libsms_modem.c:250]: Checking if Modem is registered to the network
Oct 26 05:33:42 localhost /usr/local/sbin/kamailio[13594]: NOTICE: sms [libsms_modem.c:275]: Waiting 2 sec. before retrying
so i cannot send ok receive sms.
with contact :+84...@sipdomain
my nokia phone :6020
i can send sms via nokia by gnokii.
please help or suggest to get it wok.
thanks alot.
Hey guys,
Does someone have an example for rules used with this module?
I understand how to use the module, but not how to fill the database.
I intend to use some prefix matching and regex (if available).
Thanks in advance!
Uriel
Hi List,
Where is the best place to lookup documentation about working with
variables.
I come from the if len(x$)=y then
xxx
xxx
xxx
End If
school!
Looking for the best place to lookup documentation for checking characters,
lengths of strings and removing or prepending stuff based on the results.
Thanks
Brian
Hello List;
I was following along the Kamailio Asterisk Realtime Integration; I
modified the script to get it working on Kamailio v 3.1.
One area I had a question about was here...
We have the following block;
# Forward REGISTER to Asterisk
route[REGFWD] {
if(!is_method("REGISTER"))
{
return;
}
$var(rip) = $sel(cfg_get.asterisk.bindip);
$uac_req(method)="REGISTER";
$uac_req(ruri)="sip:" + $var(rip) + ":" +
$sel(cfg_get.asterisk.bindport);
$uac_req(furi)="sip:" + $au + "@" + $var(rip);
$uac_req(turi)="sip:" + $au + "@" + $var(rip);
$uac_req(hdrs)="Contact: <sip:" + $au + "@" + $ad
+ ":" + $sel(cfg_get.kamailio.bindport)
+ ">\r\n";
if($sel(contact.expires) != $null)
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " +
$sel(contact.expires) + "\r\n";
else
$uac_req(hdrs)= $uac_req(hdrs) + "Expires: " +
$hdr(Expires) + "\r\n";
uac_req_send();
}
If I change the line to read : $uac_req(hdrs)="Contact: <sip:" + $au +
"@" + $ad
from : $uac_req(hdrs)="Contact: <sip:" + $au + "@" +
$sel(cfg_get.kamailio.bindip)
I get the following error;
loading modules under
/usr/local/kamailio-3.1-proxy/lib/kamailio/modules_k/:/usr/local/kamailio-3.1-proxy/lib/kamailio/modules/
$ad
0(13715) ERROR: <core> [pvapi.c:445]: bad parameters
0(13715) : <core> [cfg.y:3409]: parse error in config file
/usr/local/kamailio-3.1-proxy/etc/kamailio/kamailio.cfg, line 717,
column 48-47: unknown script pseudo variable
ERROR: bad config file (1 errors)
I would imagine that if the "$au" pseudo variable is available the "$ad"
variable would be available as well.
Please help point out my mistake.
Thanks.
David.
Thanks Marius,
that was it.
Regards
Javier
On Mon, Oct 25, 2010 at 10:08 PM, <sr-users-request(a)lists.sip-router.org>wrote:
> Send sr-users mailing list submissions to
> sr-users(a)lists.sip-router.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> or, via email, send a message with subject or body 'help' to
> sr-users-request(a)lists.sip-router.org
>
> You can reach the person managing the list at
> sr-users-owner(a)lists.sip-router.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sr-users digest..."
>
>
> Today's Topics:
>
> 1. Drouting usage (Javier Gallart)
> 2. PSTN call (michel freiha)
> 3. Re: Drouting usage (marius zbihlei)
> 4. bflag under failure_route (kamailio 1.5) (I?aki Baz Castillo)
> 5. Re: bflag under failure_route (kamailio 1.5)
> (Daniel-Constantin Mierla)
> 6. Re: bflag under failure_route (kamailio 1.5) (I?aki Baz Castillo)
> 7. Re: bflag under failure_route (kamailio 1.5)
> (Daniel-Constantin Mierla)
> 8. Re: bflag under failure_route (kamailio 1.5) (I?aki Baz Castillo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 25 Oct 2010 15:16:56 +0200
> From: Javier Gallart <jgallartm(a)gmail.com>
> Subject: [SR-Users] Drouting usage
> To: sr-users(a)lists.sip-router.org
> Message-ID:
> <AANLkTik8pWtu9uT1=mPb_zSnztej5kHzPrEVPubgzeY7(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello
>
> sorry if this sounds too "newbie". I'm interested in the drouting module.
> The first INVITE is correctly forwarded to the gw foudn in the drouting
> table:
> if (is_method("INVITE") && !has_totag()) {
> do_routing("0");
> record_route();
> }
> However for subsequent messages (ACK, BYE) in the dialog I don't know how
> to
> keep track of the ip resolved by the drouting logic so the messages are
> correctly forwarded to the same gw. I've made some tests using the dialog
> module with no success. Any hint?
>
> Thanks in advance
>
> Javier
>
Guys I'm getting the below error...Can anybody help please?
Oct 22 12:27:17 localhost /usr/local/sbin/kamailio[28566]: ERROR: <script>:
time_dbg:method=INVITE;time=1287750437;callid=Y2FjNDAyZDY4YTk5ZWQ1Yjc4MDk4ZGZiZjk5YjIyYmE.
- in NAT out route
Regards
Hi, does Kamailio support any sort of outbound load balancing where you
can set the resources available at a gateway and the system keeps a list
of what's in use? Opensips has something similar but does kamailio?
Thanks
Lee