I have a problem with redirection to voice mail. If caller hangs up,
the CANCEL hits SER and the call is cleanly terminated. SER however
continues to failure_route after timeout of the initial INVITE which
results in an empty message generated by the voice mail server.
Does anyone know how to deal with this?
Thanks,
Adrian
if (is_user_in("Request-URI", "voicemail")) {
setflag(3);
};
if (!lookup("location")) {
xlog ("L_INFO","Location not found");
} else {
if (method == "INVITE" && isflagset(3)) {
xlog ("L_INFO","Flag3 is set, try voicemail after timeout");
t_on_failure("3");
};
};
xlog ("L_INFO","Relay to destination");
xlog ("L_INFO", "%rm from %is: %fu -> %ru\n");
t_relay();
--------
failure_route[3] {
revert_uri();
xlog ("L_INFO","Forward to voicemail (failure route 3)");
exec_dset("/etc/ser/serredir.py voip_voicemail ;echo>/dev/null");
append_branch();
t_relay();
}
Consider the situation whereby after an INVITE occurs which ser initially
routes to A (which is, say, busy) and subsequently routes to B. Perhaps it
has gone through t_on_failure or some other mechanism of sequential
forking. Assume the INVITE has been OK'd and ACK'd.
What mechanism does ser use to ensure subsequent transactions on the
call-leg (such as BYE, re-INVITE etc.) are sent to B and not A? IE where is
the state being stored and how?
Alex
hello friends,
iam having stable ser cvs version
in redhat linux 9.0
i used the rtpproxy for quite some time
to test between public ip - private ip but could not
get success.
so now iam testing with mediaproxy
so as instructed in the install file of the
mediaproxy it s not starting any procees
and when i press ps -f | grep "mediaproxy.other"
its not showing any process running
if i start individualy the files like
-------------------------------------------------
[root@server mediaproxy]# ./mediaproxy.py
Traceback (most recent call last):
File "./mediaproxy.py", line 21, in ?
from optparse import OptionParser
ImportError: No module named optparse
-------------------------------------------------
this error iam getting
so what could be the solution
iam not running ser
does it needs simultaneous execution of both
please guide me
with regards
rama kanth
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Klaus,
Thank you for your help. I have got a working ser.cfg and the system
forwards the voicemail to the voicemail platform. I can also forward my
internal calls to my Asterisk box and all is well.
I seem to have problem with the nat_helper module.
I'm using the version that comes with 0.8.12 rpm;
I get the following in the debug;
0(9285) find_export: <nat_uac_test> not found
0(9285) find_export: <nat_uac_test> not found
0(9285) parse error (113,22-23): unknown command, missing loadmodule?
This is related to the following chunk of code;
#if (nat_uac_test("2")) {
# log(1, "src address different than via header->NAT
detected\n");
# log(1, "force_rport and fix_nated_contact and
setflag(5)\n");
# #try NAT traversal, works only if the client is symmetrical
# force_rport();
# fix_nated_contact();
# append_hf("P-hint: fixed NAT contact for request\r\n");
# # flag 5 indicates that incoming request is from NATed
client
# setflag(5);
#};
I comment this out and all seems to work. I'm very interested in using the
NAT helper module.
Warm Regards and Thanks
Shad
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: Wednesday, June 02, 2004 4:52 PM
To: Shad Mortazavi
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] SER + Voicemail - Need help completing
Shad Mortazavi wrote:
> Can someone post a copy of a ser.cfg with a forward to 2nd ser to get vm
> working ? I have included a copy of my ser.cfg and voicemail.cfg. As
> always I appreciate the help.
>
http://lists.iptel.org/pipermail/serusers/2004-February/005996.html
regards,
klaus
Hello:
With 0.8.12 the MySQL GRANT statements in the create database
section of ser_mysql.sh didn't seem to work. Both ser and serro from any
host or localhost have no privileges. Is this a known issue? If so is
there a fix?
Thanks,Steve
Hi Girish!
Please send all emails to the list.
I have not tried IVR yet, nor I'm a programmer and experienced in
debugging - so my advices are very basic.
As ser crashes not immediately, maybe this is a memory problem. Try to
comment some parts of your module to find out the statements which makes
ser crash.
regards,
klaus
GR S wrote:
> Note: forwarded message attached.
>
> Klaus,
>
> I posted this mail to the SER dev list yesterday and did not get reply for that. So i am
> sending this to you off list. Could you please take a look at this and tell what is going
> wrong? I diagnosed it further and found that SER crashes because of SIGSEGV when we
> modify the uri. Any help in this regard would greately be appreciated.
>
> Regards,
>
> =====
> Girish Gopinath <gr_sh2003(a)yahoo.com>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
>
>
> ------------------------------------------------------------------------
>
> Subject:
> SER Crash Issues
> From:
> GR S <gr_sh2003(a)yahoo.com>
> Date:
> Tue, 1 Jun 2004 06:00:40 -0700 (PDT)
> To:
> serdev(a)lists.iptel.org
>
> To:
> serdev(a)lists.iptel.org
>
>
> Hello All,
>
> We have a system running SER and Asterisk together. SER on 5060 and Asterisk on 6060. The
> role of Asterisk is here to play the ivr messages. The calls land on SER and it gets the
> appropriate context from a module and t_relays it to Asterisk. This is working fine, but
> we experience crashes with SER after every 20-30 attempts. Our efforts to figure out the
> problem were not succeeded. I am attaching herewith relevent parts of my ser.cfg file,
> and the routine from the module that queries for the appropriate site context. Can anyone
> please verify the code and tell where the problem is? Any help on this regard would
> greately be appreciated.
>
> This is from ser.cfg file:
>
> modparam ("ivrtest", "db_url", "mysql://ser:heslo@localhost/ser")
> modparam ("ivrtest", "proxy_domain", "192.168.68.20")
> modparam ("ivrtest", "media_server", "192.168.68.20:6060")
>
> if ( method == "INVITE") {
> sl_send_reply("100", "Trying");
> log(1,"Processsing call 1\n");
>
> if (uri =~ "sip:[0-9]{10}@*"){
> if (! get_ivr_context("1")) {
> sl_send_reply ("404", "Not Found");
> drop ();
> break;
> }
> t_relay();
> log(1, "Context Relayed\n");
> break;
> }
> }
> ---------------------------------------------------------------------------
>
> This is the routine from the module that serves the request for ivr context:
>
> int get_ivr_context (struct sip_msg *msg, char *p1, char *p2)
> {
> str uri, strval;
> char tollfree [15], newuri [60], sqlcommand [150];
> db_res_t *res;
> db_row_t row;
>
> uri = msg->first_line.u.request.uri;
>
> /* Expected toll free:- "sip:12345678900@blah..." */
>
> memset (tollfree, 0x00, 15);
> strncpy (tollfree, uri.s+4, 11);
>
> strval.s = malloc(strlen(tollfree) + 1 );
> strcpy(strval.s, tollfree);
> strval.len = strlen(strval.s);
>
> memset (sqlcommand, 0x00, 150);
> sprintf (sqlcommand, "SELECT sitename FROM siteinfo, pbxivr WHERE siteinfo.siteid =
> pbxivr.siteid AND pbxivr.tollfreenum = '%s'", tollfree);
>
> #if 0
> fprintf(stderr, "Q: %s\n", sqlcommand);
> #endif
>
> db_raw_query (h, sqlcommand, &res);
> if (RES_ROW_N (res) < 1) return -1;
>
> row = RES_ROWS (res)[0];
> if (! res || ! row.values)
> {
> db_free_query(h, res);
> return -1;
> }
> else
> {
> /* New URI: "sip:sitename@192.168.68.20:6060"*/
> memset (newuri, 0x00, 60);
> sprintf (newuri, "sip:%s@%s", row.values[0].val.string_val, media_server);
>
> uri.s = malloc (strlen (newuri)+1);
> bzero (uri.s,strlen (newuri)+1);
> strncpy (uri.s, newuri, strlen (newuri));
> uri.len = strlen (newuri);
> msg->parsed_uri_ok = 1;
> set_uri (msg, uri);
>
> }
>
> if (db_free_query(h, res) < 0) return -1;
> return 1;
> }
>
> TIA,
>
> =====
> Girish Gopinath <gr_sh2003(a)yahoo.com>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
Hi All,
Could some one tell me what the version status and compatibility is with
ser and sems?
Is ser 0.8.12 compatible with the cvs version of sems?
If not, are there plans to make new releases of ser and sems that will
be compatible?
Thank you,
-Jev
Hi,
User 1000 calls 1001, who is cfwd (302) to a pstn number. Pstn provider will see 1000 as the caller and he get billed
for the call to pstn. Is there a way to insert 1001 in the Remote-Party-Id header in this scenario to fix billing info?
Something like: if (method == "30X"), extract number from "To: header" and insert it as Remote-Party-Id?
Thanks,
Tor.
Hello Everyone,
is there any reason for the lookup("aliases"); function not working on the
last CVS version (0.8.13-dev-29) neither on the version
0.8.13-dev-27-sockunix?
Best Regards,
Toni