[OpenSIPS-Users] ACC Problem. to_did blown away.

Brett Nemeroff brett at nemeroff.com
Wed Apr 22 17:10:44 CEST 2009


Bogdan,What was happening is that a call to a carrier failed and caused the
RURI which was written to the DB to come from the Contact header of the 486
that came from the carrier. I'm not sure why it used that instead of the
OURI..

I fixed this issue by storing the OURI to an avp ON INVITE and the writing
that AVP to the db instead of rU or oU.

This works for *me*.
-Brett


On Wed, Apr 22, 2009 at 2:42 AM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:

> HI Brett,
>
> You lost me here.....
>
> The $oU is the original username (whatever opensips received in the RURI of
> the request).   Also you mentioned about the Contact URI (mod_sofia),
> right??
>
> So, what exact part of the message are you trying to log?
>
> Regards,
> Bogdan
>
> Brett Nemeroff wrote:
>
>> No, actually, the original invite, had a perfectly valid RURI in it.. but
>> the contact had sip:mod_sofia in it..
>>
>> I am using extra_accounting and I'm looking $oU, which is why I'm confused
>> since the actual $oU is valid and not sip:mod_sofia
>>
>>
>>
>> On Wed, Apr 8, 2009 at 8:40 AM, Bogdan-Andrei Iancu <
>> bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>> wrote:
>>
>>    Hi Brett,
>>
>>    The acc module will log the last RURI of the failed branch...so
>>    what was the RURI before sending the INVITE out....because if I
>>    look at the ACK, I guess the INVITE also has "mod_sofia", right ?
>>    In failure route you cannot change the branch that was just
>>    completed....
>>
>>    If you want something custom to be logged, use the
>>    extra_accounting options.
>>
>>    Regards,
>>    Bogdan
>>
>>    Brett Nemeroff wrote:
>>
>>        Hey All,
>>        I'm sure I'm doing someting stupid here.. In general, I set
>>        all the acc_db flags at the top of my script so everything
>>        gets logs. I'm getting 486 Busy from the far end and nice,
>>        pretty to_did from the original RURI is being blown away with
>>        'sip:mod_sofia'
>>
>>        Question is.. what do I need to do to get the 486 logged, but
>>        to have the right did in the record.. right now I use $oU.
>>        Maybe a revert_uri? (am I making that up?)
>>
>>
>>        Here's the 486 from my upstream:
>>
>>
>>        U 5.6.239.142:5060 <http://5.6.239.142:5060>
>>        <http://5.6.239.142:5060> -> 1.2.204.8:5060
>>        <http://1.2.204.8:5060> <http://1.2.204.8:5060>
>>
>>
>>        SIP/2.0 486 Busy Here.
>>
>>        Via: SIP/2.0/UDP 1.2.204.8;branch=z9hG4bK5a3.473e0af1.0.
>>
>>        Via: SIP/2.0/UDP
>>        2.3.72.138:5060
>> ;received=2.3.72.138;branch=z9hG4bK0bf20a91;rport=5060.
>>
>>        From: "custdomain.com <http://custdomain.com>
>>        <http://custdomain.com>" <sip:custdomain.com
>>        <http://custdomain.com> <http://custdomain.com>@2.3.72.138
>>        <http://2.3.72.138> <http://2.3.72.138>>;tag=as0e9ef59a.
>>
>>        To: <sip:5212324399441 at 1.2.204.8 <sip%3A5212324399441 at 1.2.204.8>
>>        <mailto:sip%3A5212324399441 at 1.2.204.8<sip%253A5212324399441 at 1.2.204.8>
>> >
>>        <mailto:sip%3A5212324399441 at 1.2.204.8<sip%253A5212324399441 at 1.2.204.8>
>>        <mailto:sip%253A5212324399441 at 1.2.204.8<sip%25253A5212324399441 at 1.2.204.8>
>> >>>;tag=BeZcHaUmX1D8Q.
>>
>>        Call-ID: 29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138
>>        <mailto:29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138>
>>        <mailto:29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138
>>        <mailto:29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138>>.
>>
>>
>>        CSeq: 103 INVITE.
>>
>>        User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-12911.
>>
>>        Accept: application/sdp.
>>
>>        Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE,
>>        SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH.
>>
>>        Supported: timer, precondition, path, replaces.
>>
>>        Content-Length: 0.
>>
>>        .
>>
>>
>>
>>        U 2.3.72.138:5060 <http://2.3.72.138:5060>
>>        <http://2.3.72.138:5060> -> 1.2.204.8:5060
>>        <http://1.2.204.8:5060> <http://1.2.204.8:5060>
>>
>>
>>        ACK sip:mod_sofia at 63.211.239.143:5060;transport=udp SIP/2.0.
>>
>>        Via: SIP/2.0/UDP 2.3.72.138:5060;branch=z9hG4bK0bf20a91;rport.
>>
>>        Route:
>>
>>  <sip:1.2.204.8;lr=on;did=bf5.880cbc94>,<sip:5.6.239.142;lr=on;ftag=as0e9ef59a>.
>>
>>        Max-Forwards: 70.
>>
>>        From: "custdomain.com <http://custdomain.com>
>>        <http://custdomain.com>" <sip:custdomain.com
>>        <http://custdomain.com> <http://custdomain.com>@2.3.72.138
>>        <http://2.3.72.138> <http://2.3.72.138>>;tag=as0e9ef59a.
>>
>>        To: <sip:5212324399441 at 1.2.204.8 <sip%3A5212324399441 at 1.2.204.8>
>>        <mailto:sip%3A5212324399441 at 1.2.204.8<sip%253A5212324399441 at 1.2.204.8>
>> >
>>        <mailto:sip%3A5212324399441 at 1.2.204.8<sip%253A5212324399441 at 1.2.204.8>
>>        <mailto:sip%253A5212324399441 at 1.2.204.8<sip%25253A5212324399441 at 1.2.204.8>
>> >>>;tag=BeZcHaUmX1D8Q.
>>
>>        Contact: <sip:custdomain.com <http://custdomain.com>
>>        <http://custdomain.com>@2.3.72.138 <http://2.3.72.138>
>>         <http://2.3.72.138>>.
>>
>>        Call-ID: 29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138
>>        <mailto:29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138>
>>        <mailto:29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138
>>        <mailto:29728c50765bdc3275a6bd375a6508b1 at 2.3.72.138>>.
>>
>>
>>        CSeq: 103 ACK.
>>
>>        User-Agent: SS.
>>
>>        Content-Length: 0.
>>
>>
>>
>>
>>
>>  ------------------------------------------------------------------------
>>
>>        _______________________________________________
>>        Users mailing list
>>        Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>        http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090422/53ca4cdb/attachment.htm 


More information about the Users mailing list