[Serusers] how to determine if src_ip and uri domain are the same?

Elena Ramona Modroiu ramona at voice-system.ro
Wed Nov 3 09:29:28 CET 2004


The module compiles only for unstable version (CVS head). If you use 
this version, get a clean version from CVS 
(http://developer.berlios.de/cvs/?group_id=480) and try again. If you 
still get errors, tell me more information about your system/OS/compiler ...

Salutari,
Ramona

Allan wrote:

>Hi Marian,
>
>This is what I am looking for, thanks.  Had some
>difficulty getting the module to compile.  See the
>attached.
>
>Regards,
>Allan
>
>
> --- Marian Dumitru <marian.dumitru at voice-sistem.ro>
>wrote: 
>  
>
>>Hi Allan,
>>
>>if you use the new module AVPOPS you can test what
>>you want. Example 
>>number 5 , if I'm not wrong, shows something very
>>similar:
>>http://voice-system.ro/docs/avpops
>>
>>Best regards,
>>Marian Dumitru
>>
>>Allan wrote:
>>    
>>
>>>What can I do in order to make a decision based on
>>>src_ip and the IP address in the URI domain?  I
>>>      
>>>
>>have
>>    
>>
>>>calls between UAs located behind the same NAT on
>>>      
>>>
>>the
>>    
>>
>>>other end of a low bandwidth WAN circuit and want
>>>      
>>>
>>the
>>    
>>
>>>ability to not force the call through rtp_proxy. 
>>>      
>>>
>>In
>>    
>>
>>>practice this works ok with a fixed IP address but
>>>      
>>>
>>I
>>    
>>
>>>am unsure how to make the process more dynamic.  I
>>>      
>>>
>>am
>>    
>>
>>>new to SER and still learning the features and
>>>scripting language so I apologize of this topic is
>>>covered somewhere else.
>>>
>>>Regards,
>>>Allan
>>>
>>>
>>>      
>>>
>______________________________________________________________________
>  
>
>>>Post your free ad now! http://personals.yahoo.ca
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers at lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>      
>>>
>>-- 
>>Voice Sistem
>>http://www.voice-sistem.ro
>> 
>>    
>>
>
>______________________________________________________________________ 
>Post your free ad now! http://personals.yahoo.ca
>
>------------------------------------------------------------------------
>
>avpops_impl.c:50: syntax error before `store_keys'
>avpops_impl.c:50: warning: type defaults to `int' in declaration of `store_keys'
>avpops_impl.c:50: warning: data definition has no type or storage class
>avpops_impl.c:51: syntax error before `store_vals'
>avpops_impl.c:51: warning: type defaults to `int' in declaration of `store_vals'
>avpops_impl.c:51: warning: data definition has no type or storage class
>avpops_impl.c: In function `init_store_avps':
>avpops_impl.c:58: warning: assignment makes integer from pointer without a cast
>avpops_impl.c:59: request for member `type' in something not a structure or union
>avpops_impl.c:59: `DB_STR' undeclared (first use in this function)
>avpops_impl.c:59: (Each undeclared identifier is reported only once
>avpops_impl.c:59: for each function it appears in.)
>avpops_impl.c:60: request for member `nul' in something not a structure or union
>avpops_impl.c:62: warning: assignment makes integer from pointer without a cast
>avpops_impl.c:63: request for member `type' in something not a structure or union
>avpops_impl.c:64: request for member `nul' in something not a structure or union
>avpops_impl.c:66: warning: assignment makes integer from pointer without a cast
>avpops_impl.c:67: request for member `type' in something not a structure or union
>avpops_impl.c:68: request for member `nul' in something not a structure or union
>avpops_impl.c:70: warning: assignment makes integer from pointer without a cast
>avpops_impl.c:71: request for member `type' in something not a structure or union
>avpops_impl.c:71: `DB_INT' undeclared (first use in this function)
>avpops_impl.c:72: request for member `nul' in something not a structure or union
>avpops_impl.c:74: warning: assignment makes integer from pointer without a cast
>avpops_impl.c:75: request for member `type' in something not a structure or union
>avpops_impl.c:76: request for member `nul' in something not a structure or union
>avpops_impl.c:78: warning: assignment makes integer from pointer without a cast
>avpops_impl.c:79: request for member `type' in something not a structure or union
>avpops_impl.c:80: request for member `nul' in something not a structure or union
>avpops_impl.c: At top level:
>avpops_impl.c:84: warning: `struct db_row' declared inside parameter list
>avpops_impl.c:84: warning: its scope is only this definition or declaration, which is probably not what you want.
>avpops_impl.c: In function `dbrow2avp':
>avpops_impl.c:94: dereferencing pointer to incomplete type
>avpops_impl.c:94: dereferencing pointer to incomplete type
>avpops_impl.c:94: dereferencing pointer to incomplete type
>avpops_impl.c:101: dereferencing pointer to incomplete type
>avpops_impl.c:101: `DB_STRING' undeclared (first use in this function)
>avpops_impl.c:101: dereferencing pointer to incomplete type
>avpops_impl.c:101: `DB_STR' undeclared (first use in this function)
>avpops_impl.c:102: dereferencing pointer to incomplete type
>avpops_impl.c:102: dereferencing pointer to incomplete type
>avpops_impl.c:103: dereferencing pointer to incomplete type
>avpops_impl.c:103: `DB_INT' undeclared (first use in this function)
>avpops_impl.c:110: dereferencing pointer to incomplete type
>avpops_impl.c:128: dereferencing pointer to incomplete type
>avpops_impl.c:130: dereferencing pointer to incomplete type
>avpops_impl.c:133: dereferencing pointer to incomplete type
>avpops_impl.c:152: dereferencing pointer to incomplete type
>avpops_impl.c:154: dereferencing pointer to incomplete type
>avpops_impl.c:157: dereferencing pointer to incomplete type
>avpops_impl.c: In function `ops_dbload_avps':
>avpops_impl.c:281: `db_res_t' undeclared (first use in this function)
>avpops_impl.c:281: `res' undeclared (first use in this function)
>avpops_impl.c:281: warning: statement with no effect
>avpops_impl.c:282: syntax error before `uuid'
>avpops_impl.c:294: warning: implicit declaration of function `db_load_avp'
>avpops_impl.c:299: `uuid' undeclared (first use in this function)
>avpops_impl.c:320: `n' undeclared (first use in this function)
>avpops_impl.c:320: `i' undeclared (first use in this function)
>avpops_impl.c:320: warning: left-hand operand of comma expression has no effect
>avpops_impl.c:328: warning: implicit declaration of function `db_close_query'
>avpops_impl.c: In function `ops_dbstore_avps':
>avpops_impl.c:362: request for member `val' in something not a structure or union
>avpops_impl.c:366: request for member `val' in something not a structure or union
>avpops_impl.c:381: request for member `val' in something not a structure or union
>avpops_impl.c:395: request for member `val' in something not a structure or union
>avpops_impl.c:403: request for member `val' in something not a structure or union
>avpops_impl.c:407: request for member `val' in something not a structure or union
>avpops_impl.c:410: warning: implicit declaration of function `db_store_avp'
>avpops_impl.c:436: request for member `val' in something not a structure or union
>avpops_impl.c:438: request for member `val' in something not a structure or union
>avpops_impl.c:443: request for member `val' in something not a structure or union
>avpops_impl.c: In function `ops_dbdelete_avps':
>avpops_impl.c:480: warning: implicit declaration of function `db_delete_avp'
>gmake[1]: *** [avpops_impl.o] Error 1
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>




More information about the sr-users mailing list