py_pjsua SIP over TCP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI,

I have seen that UDP , TCp ; TLS transports are available to SIP. SO I
tried to add TCP transport for SIP. Like below from python

# Configure TCP transport config
    transport_cfg = py_pjsua.transport_config_default()
    transport_cfg.port = C_SIP_PORT
    transport_cfg.bound_addr = "aaa.bbb.ccc.ddd"

# Create TCP transport
    status, transport_id = \
        py_pjsua.transport_create(py_pjsua.PJSIP_TRANSPORT_TCP, transport_cfg)
    if status != 0:
        print "Error creating TCP transport", status

    transport_info = py_pjsua.transport_get_info(transport_id)

    print "transport layer info ", transport_info

# Create initial default account
    status, acc_id = py_pjsua.acc_add_local(transport_id, 1)
    if status != 0:
        print"Error creating account", status


It does not raises any Error but registration does not occur and I
dont see any SIP traffic. while looking into wireshark.

Does pjsip support SIP over TCP?

if, yes then what else I need to do more to make it work.

BR

Zahed



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux