Is there any way to manipulate a malformed contact header in a REGISTER
packet *before* we run it through proxy_auth, etc.?
I've got a couple of phones behind a Cisco router, which insists on
lopping off part of my Contact header. Basically, my inbound REGISTER
packets shows the contact header as
Contact: <sip:foo.bar@192.168.1.1:5060;transport=udp;line=8hzddhav>;q=
(note the trailing 'q=')
What i'd like to do is append a "1.0" to the header, and *then* run it
through the proxy_auth, etc., etc.
If I do a subst(), it doesnt seem to help.
Any ideas?
hi {ser+sems}users,
i've installed sems and ser with nathelper and rtpproxy all from cvs, ser and
rtpproxy work fine, i can talk to people inside and outside nat, but I can
hear sems ivr only if i call from inside the nat where ser+sems is runnig.
Has anyone some experience with nat and sems? May I run ser+sems from inside
a nat with port forwarding (as I am doing now) or will this preclude sems
from working in any case? I thought I should have to pass thru rtpproxy, but
I don't know how to deal with ser+sems fifos and rtpproxy.
reading from the following debug line it seems that no address translation
occurs in the communication between caller (192.168.1.111) and sems
(192.168.1.125, the two private IPs belonging to different networks)
(997) DEBUG: run (AmIcmpWatcher.cpp:133): ICMP from 192.168.1.125:
type='Destination Unreachable' src=192.168.1.125:36032 dst=192.168.1.111:8000
Thanks
--
Giovanni Balasso
giaso(a)yahoo.it
DEAR ALL,
i'm using ser 8.12 version in redhat 9.0.
i have problem when i tried to add alias.
the problem are like this:
when i don't add script in ser.cfg "modparam("usrloc", "use_domain", 1)",
i tried to add alias:
# serctl alias add 987654 sip:klien1@sip.pcr.ac.id
the output said: 200 added to table alias. and the problem is I can't contact the user by alias. 404 not found
when i added script in ser.cfg "modparam("usrloc", "use_domain", 1)",
i tried to add alias, the ouput said:
[root@gateway root]# serctl alias add 987654 sip:klien1@sip.pcr.ac.id
500 Error while adding contact
('987654(a)sip.pcr.ac.id','sip:klien1@sip.pcr.ac.id') in table 'aliases'.
what should i do??? ANY IDEA????. I used the latest sc version.
Sita Rosita
___________________________________________________
Share diaries and photos with your friends and family.
http://www.homemaster.net - Homemaster. Come Together. Online.
Hi all,
maybe it's a bug in module permissions. I'm trying to use the allow_trusted function to trust my SIP/DSS-1 gateways.
Below my conf regarding module permission:
modparam("permissions", "db_url", "mysql://ser:heslo@localhost/ser")
modparam("permissions", "db_mode", 1)
modparam("permissions", "trusted_table", "trusted")
[skip]
if (search("(User-Agent): Cisco-SIPGateway/IOS-12.x") && (allow_trusted())) {
setflag(2);
append_hf("P-hint:Trusted_GW\r\n");
route(2);
break;
};
but SER crashed and below the backtrace of the coredump:
#0 0x0026fc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x002ae989 in raise () from /lib/tls/libc.so.6
#2 0x002b0342 in abort () from /lib/tls/libc.so.6
#3 0x08083039 in qm_debug_frag (qm=0xbd4fb000, f=0xbd6b2e98) at mem/q_malloc.c:156
#4 0x08083425 in qm_malloc (qm=0xbd4fb000, size=20, file=0xbf0dcf "hash.c", func=0xbf0e1c "hash_table_insert", line=98)
at mem/q_malloc.c:379
#5 0x00beb8b3 in _shm_malloc (size=20, file=0xbf0dcf "hash.c", function=0xbf0e1c "hash_table_insert", line=98) at shm_mem.h:135
#6 0x00beb04d in hash_table_insert (hash_table=0xbd6b2b80, src_ip=0xa1b6c58 "X.X.X.X", proto=0xa1b6c66 "any",
pattern=0xa1b6c6a "sip:[0-9]*@X.X.X.X") at hash.c:98
#7 0x00befb4a in reload_trusted_table () at trusted.c:400
#8 0x00beefd4 in init_trusted () at trusted.c:129
#9 0x00bedd33 in mod_init () at permissions.c:459
#10 0x08075260 in init_mod (m=0x8140ce4) at sr_module.c:474
#11 0x080751d8 in init_mod (m=0x8140dd4) at sr_module.c:471
#12 0x080751d8 in init_mod (m=0x8140ec4) at sr_module.c:471
#13 0x080751d8 in init_mod (m=0x8140fb4) at sr_module.c:471
#14 0x080751d8 in init_mod (m=0x81410a4) at sr_module.c:471
#15 0x080751d8 in init_mod (m=0x8141194) at sr_module.c:471
#16 0x080751d8 in init_mod (m=0x8141284) at sr_module.c:471
#17 0x080752f1 in init_modules () at sr_module.c:497
#18 0x0805d197 in main (argc=2, argv=0xbff219d4) at main.c:1553
and here other trace in debug mode:
0(0) Number of rows in trusted table: 2
0(0) qm_malloc(0xbd559000, 20) called from hash.c: hash_table_insert(98)
0(0) qm_malloc(0xbd559000, 20) returns address 0xbd710de4 frag. 0xbd710dcc (size=20) on 1 -th hit
0(0) qm_malloc(0xbd559000, 13) called from hash.c: hash_table_insert(105)
0(0) qm_malloc(0xbd559000, 16) returns address 0xbd710e28 frag. 0xbd710e10 (size=16) on 1 -th hit
0(0) qm_malloc(0xbd559000, 24) called from hash.c: hash_table_insert(129)
0(0) qm_malloc(0xbd559000, 24) returns address 0xbd710e68 frag. 0xbd710e50 (size=24) on 1 -th hit
0(0) Tuple <Y.Y.Y.Y, any, sip:[0-9]*@Y.Y.Y.Y> inserted into trusted hash table
0(0) qm_malloc(0xbd559000, 20) called from hash.c: hash_table_insert(98)
0(0) BUG: qm_*: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0xbd710e98:0xbd710eb0]!
0(0) qm_status (0xbd559000):
0(0) heap size= 33340380
0(0) used= 1586532, used+overhead=1801928, free=31538452
0(0) max used (+overhead)= 1801928
0(0) dumping all alloc'ed. fragments:
If so, what I'm wrong with the conf?
Any suggestions??
Many thanx
Verbal
I am making good progress, however I always seem to have NAT issues with nathelper, so I am trying to use MediaProxy.
I have it installed, and the calls are showing up on the Media Sessions page, but they always show as "Status: inactive" and never show any actual traffic. Also, the client that is behind NAT (or not) can not pass any voice traffic in or out. If I run the rtpgenerator.py it shows the test rtp with traffic flowing.
Any ideas?
Thanks,
Doug
Dear all,
I have having a problem with the location table which I have duplicate entries from the same username but from different port. How can I prevent this from happening?
Please help......Thank you in advance...
Regards,
Nicky
Hello.
I have been looking for the way to register ser onto the provider sip
server but I don't get the wat to. Is it possible ser registering on
the provider server to redirect incoming calls to it? How can I do it?
Thanks!
regards
Hi,
I've got a question which may or may not have been answered earlier.
I'm running ser-0.9.0 with two domains, <domain-a> and <domain-b>.
(serctl domain add <domain-a>/<domain-b>)
I've added <user-a>@<domain-a> with password <password-a>
(serctl add <user-a>@<domain-a> <password-a> <email>
Both modules registrar and userloc has use_domain=1
Default SIP_DOMAIN="<domain-a>"
Registration with <user-a>@<domain-a> and password <password-a> works,
as usual, fine.
If I modify my user to register as: <user-a>@<domain-b> and password
<password-a> and it still is registers OK!
Is this how it should work?
I would expect that the client should not be able to register using
another realm...
Best regards,
Helge Waastad
Hi Elena,
I have a few questions in regards to avpops. Hope that you can help.
1. When avp_pushto() is used, the ruri is only used when t_relay is called.
However the uri match can't match the regular expression correctly. For
example, I have this,
avp_write("sip:nobody@test.com", "s:default");
avp_pushto("$ruri", "s:default");
if (uri =~ "^sip:nobody@") {
xlog("L_INFO", "got nobody\n");
} else {
xlog("L_INFO", "didn't get nobody\n")
}
It would say "didn't get nobody\n".
If I run t_relay, then it is sent to sip:nobody@test.com.
2. Is it possible to have a function to copy an avp to another avp? The
application is this,
tm module uses one avp to define the invite timer. If there are multiple
timer values defined for different scenarios, we need to copy the value into
the one used in tm module. For example,
s:pstn_invite=100, s:sip_invite=20,
If (the call is to pstn) {
avp_copy("s:pstn_invite", "s:callee_fr_inv_timer");
} else {
avp_copy("s:sip_invite", "s:callee_fr_inv_timer");
}
3. For performance reasons, we'd like to group all user preference in one
domain in one mysql table. Is it possible to specify the table name with an
avp?
Regards,
Richard