ERRORS opensips b2bua

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ERRORS opensips b2bua

marieGre
Hello.
I've installed the b2bua with opensips.
I can connect the client mercuro but as soon as i give a call, opensips falls.
Here are the logs on the server opensips :

Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: Selected destination is: <null>
Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: ERROR:tm:t_newtran: transaction already in process 0xb69c4f58
Jan 19 04:12:50 ipoboxtest kernel: [1111194.591502] opensips[17455]: segfault at 3a70707d ip 080de8dc sp bfde2ce0 error 6 in opensips[8048000+10f000]
Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: ERROR:tm:_reply_light: failed to generate 404 reply when a final 404 was sent out
Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: ERROR:b2b_entities:b2b_send_reply: failed to send reply with tm
Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: Selected destination is: <null>
Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: ERROR:tm:t_newtran: transaction already in process 0xb69a26e0
Jan 19 04:12:51 ipoboxtest ./sbin/opensips[17466]: CRITICAL:core:receive_fd: EOF on 13


Jan 19 04:12:52 ipoboxtest kernel: [1111195.772060] opensips[17450]: segfault at 3a70707d ip 080de1c8 sp bfde36c0 error 6 in opensips[8048



And here is what I changed in the config file (I do load_balancing too):

loadmodule "load_balancer.so"
loadmodule "dialog.so"
loadmodule "b2b_entities.so"
loadmodule "b2b_logic.so"

# -------- load balancing ---------
modparam("load_balancer", "db_url","mysql://opensips:opensipsrw@localhost/opensips")
modparam("dialog","dlg_flag",4)

# ----- b2b params -----
modparam ("b2b_entities", "server_address", "sip:x.x.x.x:5060")
modparam("tm", "pass_provisional_replies", 1)
modparam("b2b_logic", "script_scenario", "/home/opensips/etc/opensips/b2bua/appelUnique.xml")

# account only INVITEs
        #if (is_method("INVITE")) {
        #       setflag(1); # do accounting
        #}
        #if (!is_method("INVITE")) {
        #        send_reply("405","Method not allowed");
        #        exit;
        #}

        # detect resources and do balancing
        if (is_method("INVITE")) {
        if ($rU=~"^0") {
                # pstn call
                load_balance("1","pstn");
        } else {
                b2b_init_request("appelUnique", "sip:superman@x.x.x.x:5060");
                setflag(1); # do accounting
        }
        }

        # LB function returns negative if no suitable destination (for requested resources) is found,
        # or if all destinations are full
        if ($retcode<0) {
                sl_send_reply("500","Service full");
                exit;
        }


Here is my script (the purpose is that all calls are forwarded to one contact, whatever the contact called) :
<?xml version="1.0"?>
<scenario id="appelUnique" name="MS start conditional" param="1" type="extern">
  <init>
    <bridge>
    <server>
        <id>server1</id>
    </server>
    <client>
        <id>client1</id>
        <type>message</type>
        <destination>
           <value type="initial"></value>
        </destination>
    </client>
    </bridge>
    <state>1</state>
  </init>
  <rules>
    <request>
       <bye>
          <rule id="1">
             <condition>
                <state>1</state>
                <sender>
                   <type>server</type>
                   <id>server1</id>
                </sender>
             </condition>
             <action>
                <send_reply>
                   <code>200</code>
                   <reason>OK</reason>
                </send_reply>
                <delete_entity/>
                <bridge>
                   <server>
                      <id>server1</id>
                   </server>
                   <client>
                      <id>client2</id>
                      <destination>
                         <value type="param">1</value>
                      </destination>
                   </client>
                </bridge>
                <state>2</state>
             </action>
          </rule>
       </bye>
    </request>
 </rules>
</scenario>




I've been looking for a solution for 4 days and don't find anything...
Thank you for your help  


Reply | Threaded
Open this post in threaded view
|

Re: [OpenSIPS-Users] ERRORS opensips b2bua

Bogdan-Andrei Iancu
Hi,

If you get a coredump, could you please post the backtrace of the core
file ? Just to see the reason for the crash.

Now, about the first error message you get from the script - looks like
the transaction is created twice - do you do any t_newtran() in your
script before invoking the b2bua part ?

Regards,
Bogdan

marieGre wrote:

> Hello.
> I've installed the b2bua with opensips.
> I can connect the client mercuro but as soon as i give a call, opensips
> falls.
> Here are the logs on the server opensips :
>
> Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: Selected destination is:
> <null>
> Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: ERROR:tm:t_newtran:
> transaction already in process 0xb69c4f58
> Jan 19 04:12:50 ipoboxtest kernel: [1111194.591502] opensips[17455]:
> segfault at 3a70707d ip 080de8dc sp bfde2ce0 error 6 in
> opensips[8048000+10f000]
> Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: ERROR:tm:_reply_light:
> failed to generate 404 reply when a final 404 was sent out
> Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]:
> ERROR:b2b_entities:b2b_send_reply: failed to send reply with tm
> Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: Selected destination is:
> <null>
> Jan 19 04:12:50 ipoboxtest ./sbin/opensips[17455]: ERROR:tm:t_newtran:
> transaction already in process 0xb69a26e0
> Jan 19 04:12:51 ipoboxtest ./sbin/opensips[17466]: CRITICAL:core:receive_fd:
> EOF on 13
>
>
> Jan 19 04:12:52 ipoboxtest kernel: [1111195.772060] opensips[17450]:
> segfault at 3a70707d ip 080de1c8 sp bfde36c0 error 6 in opensips[8048
>
>
> And here is what I changed in the config file (I do load_balancing too):
>
> loadmodule "load_balancer.so"
> loadmodule "dialog.so"
> loadmodule "b2b_entities.so"
> loadmodule "b2b_logic.so"
>
> # -------- load balancing ---------
> modparam("load_balancer",
> "db_url","mysql://opensips:opensipsrw@localhost/opensips")
> modparam("dialog","dlg_flag",4)
>
> # ----- b2b params -----
> modparam ("b2b_entities", "server_address", "sip:x.x.x.x:5060")
> modparam("tm", "pass_provisional_replies", 1)
> modparam("b2b_logic", "script_scenario",
> "/home/opensips/etc/opensips/b2bua/appelUnique.xml")
>
> # account only INVITEs
>         #if (is_method("INVITE")) {
>         #       setflag(1); # do accounting
>         #}
>         #if (!is_method("INVITE")) {
>         #        send_reply("405","Method not allowed");
>         #        exit;
>         #}
>
>         # detect resources and do balancing
>         if (is_method("INVITE")) {
>         if ($rU=~"^0") {
>                 # pstn call
>                 load_balance("1","pstn");
>         } else {
>                 b2b_init_request("appelUnique",
> "sip:[hidden email]:5060");
>                 setflag(1); # do accounting
>         }
>         }
>
>         # LB function returns negative if no suitable destination (for
> requested resources) is found,
>         # or if all destinations are full
>         if ($retcode<0) {
>                 sl_send_reply("500","Service full");
>                 exit;
>         }
>
>
> Here is my script (the purpose is that all calls are forwarded to one
> contact, whatever the contact called) :
> <?xml version="1.0"?>
> <scenario id="appelUnique" name="MS start conditional" param="1"
> type="extern">
>   <init>
>     <bridge>
>     <server>
>         <id>server1</id>
>     </server>
>     <client>
>         <id>client1</id>
>         <type>message</type>
>         <destination>
>            <value type="initial"></value>
>         </destination>
>     </client>
>     </bridge>
>     <state>1</state>
>   </init>
>   <rules>
>     <request>
>        <bye>
>           <rule id="1">
>              <condition>
>                 <state>1</state>
>                 <sender>
>                    <type>server</type>
>                    <id>server1</id>
>                 </sender>
>              </condition>
>              <action>
>                 <send_reply>
>                    <code>200</code>
>                    <reason>OK</reason>
>                 </send_reply>
>                 <delete_entity/>
>                 <bridge>
>                    <server>
>                       <id>server1</id>
>                    </server>
>                    <client>
>                       <id>client2</id>
>                       <destination>
>                          <value type="param">1</value>
>                       </destination>
>                    </client>
>                 </bridge>
>                 <state>2</state>
>              </action>
>           </rule>
>        </bye>
>     </request>
>  </rules>
> </scenario>
>
>
>
>
> I've been looking for a solution for 4 days and don't find anything...
> Thank you for your help  
>
>
>
>  


--
Bogdan-Andrei Iancu
www.voice-system.ro


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users